Windows 2022 support #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | | |
$version = git describe --tags --always --dirty | |
docker build \ | |
--file "Dockerfile.windows" \ | |
--build-arg GOOS="$OS" | |
--build-arg GOARCH="$ARCH" \ | |
--build-arg GOPROXY="https://proxy.golang.org|direct" \ | |
--tag aws-ec2/aws-node-termination-handler:$OS-$ARCH-${{ github.sha }} \ | |
. | |
env: | |
OS: windows | |
ARCH: amd64 |