Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.

Align SOMEIP Feeder docker config #80

Align SOMEIP Feeder docker config

Align SOMEIP Feeder docker config #80

Workflow file for this run

#Upon close of PR delete images from ghcr.io registry‚
name: clean_images
on:
pull_request:
types: [closed]
env:
REGISTRY: ghcr.io
GPSIMAGE_NAME: ${{ github.repository }}/gps
jobs:
check_tokens:
runs-on: ubuntu-latest
outputs:
have_secrets: ${{ steps.check-secrets.outputs.have_secrets }}
steps:
#Check we have access to secrets. Forks do not
- name: check for secrets needed to upload to ghcr
id: check-secrets
run: |
if [ ! -z "${{ secrets.PUSH_CONTAINER_TOKEN }}" ]; then
echo "Has token. Will delete images ghcr.io"
echo "::set-output name=have_secrets::true"
else
echo "No token detected, will do nothing!"
echo "::set-output name=have_secrets::false"
fi
build:
runs-on: ubuntu-latest
steps:
- name: Delete ephemereal GPS images from registry
if: needs.check_tokens.outputs.have_secrets == 'true'
uses: bots-house/[email protected]
with:
owner: eclipse
name: kuksa.val.feeders/gps
token: ${{ secrets.PUSH_CONTAINER_TOKEN }}
tag: pr-${{github.event.pull_request.number}}