Skip to content

Updates

Updates #54

Workflow file for this run

name: 'Clean up Docker images from PR'
on:
pull_request:
types: [closed]
jobs:
purge-image:
name: Delete image from ghcr.io
runs-on: ubuntu-latest
steps:
- name: Build PR Check
id: containers
run: |
if [[ "${{ secrets.BUILD_PR }}" != "" && \
"${{ secrets.PR_CONTAINERS_USER }}" != "" && \
"${{ secrets.PR_CONTAINERS }}" != "" ]]
then
echo "PR Builds configured"
echo "::set-output name=BUILD_PR::true"
else
echo "PR Builds not configured"
echo "::set-output name=BUILD_PR::false"
fi
- uses: chipkent/[email protected]
with:
package-name: ${{ github.event.repository.name }}
tag: pr-${{ github.event.pull_request.number }}
github-token: ${{ secrets.PR_CONTAINERS }}
github-org: ${{ secrets.ORG}} # Should only be set when running in an organization
if: ${{ fromJSON(steps.containers.outputs.BUILD_PR) }}