Skip to content

Commit

Permalink
Windows 2022 support
Browse files Browse the repository at this point in the history
  • Loading branch information
PatTheSilent committed May 20, 2024
1 parent f74b2bb commit e188eb2
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/build-and-push.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit e188eb2

Please sign in to comment.