File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed
Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -7,24 +7,22 @@ name: Docker
77
88on :
99 schedule :
10- - cron : ' 27 0 * * *'
10+ - cron : " 27 0 * * *"
1111 push :
12- branches : [ "main" ]
12+ branches : ["main"]
1313 # Publish semver tags as releases.
14- tags : [ ' v*.*.*' ]
14+ tags : [" v*.*.*" ]
1515 pull_request :
16- branches : [ "main" ]
16+ branches : ["main"]
1717
1818env :
1919 # Use docker.io for Docker Hub if empty
2020 REGISTRY : ghcr.io
2121 # github.repository as <account>/<repo>
2222 IMAGE_NAME : ${{ github.repository }}
2323
24-
2524jobs :
2625 build :
27-
2826 runs-on : ubuntu-latest
2927 permissions :
3028 contents : read
4341 if : github.event_name != 'pull_request'
4442 uses : sigstore/cosign-installer@59acb6260d9c0ba8f4a2f9d9b48431a222b68e20 # v3.5.0
4543 with :
46- cosign-release : ' v2.2.4'
44+ cosign-release : " v2.2.4"
4745
4846 # Set up BuildKit Docker container builder to be able to build
4947 # multi-platform images and export cache
8280 cache-from : type=gha
8381 cache-to : type=gha,mode=max
8482 platforms : linux/amd64,linux/arm64
83+ build-args :
84+ VERSION : ${{ github.ref_name }}
8585
8686 # Sign the resulting Docker image digest except on PRs.
8787 # This will only write to the public Rekor transparency log when the Docker
Original file line number Diff line number Diff line change 11ARG VERSION="dev"
22
33FROM golang:1.23.7 AS build
4+ # allow this step access to build arg
5+ ARG VERSION
46# Set the working directory
57WORKDIR /build
68# Copy the current directory contents into the working directory
You can’t perform that action at this time.
0 commit comments