File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Release LS version of webhook
2+
3+ on :
4+ workflow_dispatch :
5+ inputs :
6+ goVersion :
7+ description : ' Go version to build with'
8+ required : true
9+ type : string
10+ default : ' 1.24.9'
11+ tag :
12+ description : ' Tag to push'
13+ required : true
14+ type : string
15+ jobs :
16+ build :
17+ # this is to prevent the job to run at forked projects
18+ runs-on : ubuntu-latest
19+ permissions :
20+ id-token : write
21+ steps :
22+ - uses : actions/checkout@v5
23+ - name : Set up QEMU
24+ uses : docker/setup-qemu-action@v3
25+ -
26+ name : Set up Docker Buildx
27+ uses : docker/setup-buildx-action@v3
28+ - name : Build container and push to Dockerhub registry
29+ env :
30+ DOCKER_USERNAME : ${{ secrets.DOCKERHUB_PUSH_USERNAME }}
31+ DOCKER_PASSWORD : ${{ secrets.DOCKERHUB_PUSH_TOKEN }}
32+ TAG : ${{ inputs.tag }}
33+ GO_VERSION : ${{ inputs.goVersion }}
34+ run : |
35+ REPO=localstack/amazon-eks-pod-identity-webhook
36+ docker buildx build \
37+ -t $REPO:$TAG \
38+ --build-arg golang_image=public.ecr.aws/eks-distro-build-tooling/golang:${{ env.GO_VERSION }}-gcc \
39+ --platform=linux/amd64,linux/arm64 \
40+ --progress plain \
41+ --push .
42+
You can’t perform that action at this time.
0 commit comments