Skip to content

Commit b6e4277

Browse files
committed
Add release workflow for LocalStack
1 parent 87b4310 commit b6e4277

1 file changed

Lines changed: 48 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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+
24+
- name: Set up QEMU
25+
uses: docker/setup-qemu-action@v3
26+
27+
- name: Set up Docker Buildx
28+
uses: docker/setup-buildx-action@v3
29+
30+
- name: Login to Docker Hub
31+
uses: docker/login-action@v3
32+
with:
33+
username: ${{ secrets.DOCKERHUB_PUSH_USERNAME }}
34+
password: ${{ secrets.DOCKERHUB_PUSH_TOKEN }}
35+
36+
- name: Build container and push to Dockerhub registry
37+
env:
38+
TAG: ${{ inputs.tag }}
39+
GO_VERSION: ${{ inputs.goVersion }}
40+
run: |
41+
REPO=localstack/amazon-eks-pod-identity-webhook
42+
docker buildx build \
43+
-t $REPO:$TAG \
44+
--build-arg golang_image=public.ecr.aws/eks-distro-build-tooling/golang:${{ env.GO_VERSION }}-gcc \
45+
--platform=linux/amd64,linux/arm64 \
46+
--progress plain \
47+
--push .
48+

0 commit comments

Comments
 (0)