Delete branch-nwiltsie_update_docker_action
docker tag
#5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Update image in GHCR | |
run-name: > | |
${{ | |
github.event_name == 'delete' && format( | |
'Delete `{0}{1}`', | |
github.event.ref_type == 'branch' && 'branch-' || '', | |
github.event.ref | |
) | |
|| github.ref == 'refs/heads/main' && 'Update `dev`' | |
|| format( | |
'Update `{0}{1}`', | |
!startsWith(github.ref, 'refs/tags') && 'branch-' || '', | |
github.ref_name | |
) | |
}} docker tag | |
on: | |
workflow_dispatch: | |
push: | |
branches-ignore: ['gh-pages'] | |
tags: ['v*'] | |
delete: | |
jobs: | |
push-or-delete-image: | |
runs-on: ubuntu-latest | |
name: Update GitHub Container Registry | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- uses: uclahs-cds/[email protected] | |
with: | |
custom-tags: | | |
type=raw,enable=${{github.event_name == 'workflow_dispatch'}},branch=unstable,value=unstable | |
# Uncomment if you expect to use non-SemVer release tags | |
# non-semver-tags: true |