Skip to content

Commit 14d035f

Browse files
committed
Update CI workflow to set image tag to squid version
1 parent 8b8d8ef commit 14d035f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/build-and-push-images.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,11 @@ jobs:
4747
type=raw,value=latest,enable={{is_default_branch}}
4848
4949
- name: Build and push Docker image
50-
uses: docker/build-push-action@v4
50+
uses: docker/build-push-action@v7
5151
with:
5252
context: .
53+
build-args: |
54+
SQUID_VERSION=${{ github.ref_type == 'tag' && github.ref_name || "" }}
5355
push: ${{ github.event_name != 'pull_request' }}
5456
tags: ${{ steps.meta.outputs.tags }}
5557
labels: ${{ steps.meta.outputs.labels }}

0 commit comments

Comments
 (0)