From c6c407c7e55de51853df0aecf7c758409d4dd523 Mon Sep 17 00:00:00 2001 From: Shawn Edge Date: Fri, 6 Dec 2024 10:11:46 -0500 Subject: [PATCH] ci: update publish workflow to use the tag when created to build and set as docker tag for publishing --- .github/workflows/docker-publish.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index b678507..92323eb 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -11,7 +11,9 @@ name: Build & Publish on: push: - branches: ['release'] + # Pattern matched against refs/tags + tags: + - '**' env: REGISTRY: docker.io @@ -47,7 +49,7 @@ jobs: include: - dockerfile: Dockerfile tags: | - ${{ needs.generate.outputs.REGISTRY }}/keychainmdip/bitcoin-core:release + ${{ needs.generate.outputs.REGISTRY }}/keychainmdip/bitcoin-core:${{ github.ref_name }} permissions: contents: read packages: write @@ -70,7 +72,7 @@ jobs: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} tags: | ${{ needs.generate.outputs.CALVER }} - release + ${{ github.ref_name }} - name: Build and push Docker images uses: docker/build-push-action@1a162644f9a7e87d8f4b053101d1d9a712edc18c