Skip to content

Commit 6e63aab

Browse files
committed
Push release versions to dockerhub
1 parent cffeab1 commit 6e63aab

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/container-image.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
push:
55
branches:
66
- main
7+
release:
8+
types: [published]
79

810
jobs:
911
push_to_registry:
@@ -25,5 +27,5 @@ jobs:
2527
context: .
2628
file: ./Dockerfile
2729
push: true
28-
tags: loop0br/pugdns:dev
30+
tags: loop0br/pugdns:${{ github.event.release.tag_name || 'dev' }}${{ github.event.release.tag_name && ',loop0br/pugdns:latest' }}
2931
labels: ${{ steps.meta.outputs.labels }}

.github/workflows/release.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# .github/workflows/release.yaml
2+
name: Release
23

34
on:
45
release:

0 commit comments

Comments
 (0)