Skip to content

Commit

Permalink
Merge pull request #880 from uclahs-cds/nwiltsie_update_docker_action
Browse files Browse the repository at this point in the history
Update tool-Docker-action to v2.1.0
  • Loading branch information
nwiltsie authored Aug 16, 2024
2 parents 5d8b0f7 + 8e7a994 commit c1bc3a2
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 25 deletions.
25 changes: 0 additions & 25 deletions .github/workflows/build-and-deploy.yaml

This file was deleted.

39 changes: 39 additions & 0 deletions .github/workflows/docker-build-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
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/tool-Docker-action@v2.1.0
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

0 comments on commit c1bc3a2

Please sign in to comment.