File tree Expand file tree Collapse file tree 3 files changed +2
-7
lines changed Expand file tree Collapse file tree 3 files changed +2
-7
lines changed Original file line number Diff line number Diff line change 3737 username : ${{ vars.DOCKER_HUB_API_USER || secrets.DOCKER_HUB_API_USER }}
3838 password : ${{ secrets.DOCKER_HUB_API_TOKEN }}
3939
40- - name : Check Run ID
41- run : echo ${{ github.run_id }}
42-
4340 - name : Build and push
4441 uses : docker/build-push-action@v6
4542 with :
@@ -199,9 +196,6 @@ jobs:
199196 - name : Checkout
200197 uses : actions/checkout@v4
201198
202- - name : Check Run ID
203- run : echo ${{ github.run_id }}
204-
205199 - name : install-kubectl
206200 uses : azure/setup-kubectl@v3
207201 with :
Original file line number Diff line number Diff line change 5959 cache-to : type=registry,ref=${{ env.IMAGE_REPO }}:build,mode=max
6060 labels : ${{ steps.meta.outputs.labels }}
6161 tags : ${{ steps.meta.outputs.tags }}
62+ build-args : VERSION=${{ github.ref_name }}
6263 push : true
6364
6465 - name : Generate artifact attestation
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ FROM golang:1.23 AS build-stage
33WORKDIR /app
44
55# Version can be passed as --build-arg VERSION=$(git describe --tags --always)
6- ARG VERSION=development
6+ ARG VERSION=v0.0.0
77COPY . .
88RUN --mount=type=cache,target=/go/pkg/mod \
99 --mount=type=cache,target=/root/.cache/go-build \
You can’t perform that action at this time.
0 commit comments