Skip to content

Commit fb239cd

Browse files
Merge pull request #2 from KeychainMDIP/ci-tag-update
ci: update publish workflow to use the tag when created
2 parents cb4d590 + c6c407c commit fb239cd

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/docker-publish.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ name: Build & Publish
1111

1212
on:
1313
push:
14-
branches: ['release']
14+
# Pattern matched against refs/tags
15+
tags:
16+
- '**'
1517

1618
env:
1719
REGISTRY: docker.io
@@ -47,7 +49,7 @@ jobs:
4749
include:
4850
- dockerfile: Dockerfile
4951
tags: |
50-
${{ needs.generate.outputs.REGISTRY }}/keychainmdip/bitcoin-core:release
52+
${{ needs.generate.outputs.REGISTRY }}/keychainmdip/bitcoin-core:${{ github.ref_name }}
5153
permissions:
5254
contents: read
5355
packages: write
@@ -70,7 +72,7 @@ jobs:
7072
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
7173
tags: |
7274
${{ needs.generate.outputs.CALVER }}
73-
release
75+
${{ github.ref_name }}
7476
7577
- name: Build and push Docker images
7678
uses: docker/build-push-action@1a162644f9a7e87d8f4b053101d1d9a712edc18c

0 commit comments

Comments
 (0)