From e188eb2151cf18c9661039d583ecd18ba69a2531 Mon Sep 17 00:00:00 2001 From: Patryk Cichy Date: Mon, 20 May 2024 11:01:49 +0200 Subject: [PATCH] Windows 2022 support --- .github/workflows/build-and-push.yaml | 29 +++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/build-and-push.yaml diff --git a/.github/workflows/build-and-push.yaml b/.github/workflows/build-and-push.yaml new file mode 100644 index 00000000..f59246c2 --- /dev/null +++ b/.github/workflows/build-and-push.yaml @@ -0,0 +1,29 @@ +name: Build and Push + +on: + push: + branches: + - main + tags-ignore: + - "v*.*.*" + pull_request: + workflow_dispatch: + +env: + DEFAULT_GO_VERSION: ^1.21.5 + +jobs: + build: + name: Build Windows Docker Images + runs-on: windows-2022 + steps: + - name: Check out code into the Go module directory + uses: actions/checkout@v4 + + - name: Build Windows Docker Images + run: | + docker build --file "Dockerfile.windows" --build-arg WINDOWS_VERSION="$env:WINDOWS_VERSION" --tag "aws-ec2/aws-node-termination-handler:$env:OS-$env:ARCH-${{ github.sha }}" --cache-to "type=local,dest=.build-cache" . + env: + OS: windows + ARCH: amd64 + WINDOWS_VERSION: ltsc2022