Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .github/workflows/ci.yml/ci.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ on:

jobs:
build-image:
runs-on: windows-2022
strategy:
matrix:
os: [2019, 2022]
runs-on: windows-${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -16,6 +19,6 @@ jobs:
env:
GITHUB_HEAD_REF: ${{ github.head_ref }}
run: |
export IMAGE_TAG=$(echo "${GITHUB_HEAD_REF}" | sed "s/\//-/g")-2022
export IMAGE_TAG=$(echo "${GITHUB_HEAD_REF}" | sed "s/\//-/g")-${{ matrix.os }}
echo "IMAGE_TAG=$IMAGE_TAG" >> $GITHUB_ENV
docker build -t windows-event-gen:${IMAGE_TAG} .
docker build -t windows-event-gen:${IMAGE_TAG} --build-arg SERVER_VERSION=${{ matrix.os }} .
4 changes: 3 additions & 1 deletion Dockerfile.2022 → Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
FROM mcr.microsoft.com/powershell:7.4-windowsservercore-ltsc2022
ARG SERVER_VERSION

FROM mcr.microsoft.com/powershell:7.4-windowsservercore-ltsc${SERVER_VERSION}

LABEL maintainer="Paul Crooks <paul.crooks@sysdig.com>"

Expand Down