Skip to content

Commit 630d8bd

Browse files
committed
fix: Use tags always
1 parent 637a788 commit 630d8bd

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

.github/workflows/reusable-build.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ on:
1313
env:
1414
REGISTRY: ghcr.io
1515
IMAGE_REPOSITORY: ${{ github.repository }}
16-
IMAGE_NAME: ${{ inputs.image }}
17-
IMAGE_TAG: ${{ inputs.tag }}
1816

1917
jobs:
2018
build:
@@ -36,7 +34,7 @@ jobs:
3634
with:
3735
images: ${{ env.REGISTRY }}/${{ env.IMAGE_REPOSITORY }}/${{ inputs.image }}
3836
tags: |
39-
type=raw,value=${{ env.IMAGE_TAG }}
37+
type=raw,value=${{ inputs.tag }}
4038
- name: Image metadata
4139
uses: docker/metadata-action@v5
4240
id: meta
@@ -47,5 +45,5 @@ jobs:
4745
with:
4846
context: ./src/${{ inputs.image }}
4947
push: ${{ github.event_name != 'pull_request' }}
50-
tags: ${{ github.ref_type == 'tag' && steps.tags.outputs.tags }}
48+
tags: ${{ steps.tags.outputs.tags }}
5149
labels: ${{ steps.meta.outputs.labels }}

0 commit comments

Comments
 (0)