Skip to content

Commit 40eef4e

Browse files
authored
Merge pull request #19 from uclahs-cds/nwiltsie_update_docker_action
Update tool-Docker-action to v2.1.0
2 parents b65ad95 + 52417e3 commit 40eef4e

File tree

2 files changed

+36
-20
lines changed

2 files changed

+36
-20
lines changed

.github/workflows/Docker-build-release.yml

-20
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
name: Update image in GHCR
3+
4+
run-name: >
5+
${{
6+
github.event_name == 'delete' && format(
7+
'Delete `{0}{1}`',
8+
github.event.ref_type == 'branch' && 'branch-' || '',
9+
github.event.ref
10+
)
11+
|| github.ref == 'refs/heads/main' && 'Update `dev`'
12+
|| format(
13+
'Update `{0}{1}`',
14+
!startsWith(github.ref, 'refs/tags') && 'branch-' || '',
15+
github.ref_name
16+
)
17+
}} docker tag
18+
19+
on:
20+
push:
21+
branches-ignore: ['gh-pages']
22+
tags: ['v*']
23+
delete:
24+
25+
jobs:
26+
push-or-delete-image:
27+
runs-on: ubuntu-latest
28+
name: Update GitHub Container Registry
29+
permissions:
30+
contents: read
31+
packages: write
32+
steps:
33+
- uses: uclahs-cds/[email protected]
34+
# This argument makes the action match non-semver tags
35+
with:
36+
non-semver-tags: true

0 commit comments

Comments
 (0)