Skip to content

Commit b9239f0

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

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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+

0 commit comments

Comments
 (0)