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