Skip to content

Commit

Permalink
feat: add windows 2025
Browse files Browse the repository at this point in the history
  • Loading branch information
viceice committed Dec 22, 2024
1 parent 5dc8063 commit 4fb0a65
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 4 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:

strategy:
matrix:
os: [2019,2022]
os: [2019,2022,2025]

env:
BASE: ${{ matrix.os }}
Expand Down Expand Up @@ -140,11 +140,13 @@ jobs:
docker manifest create ${{ env.IMAGE }} \
${{ env.IMAGE }}:linux-amd64 \
${{ env.IMAGE }}:windows-2019 \
${{ env.IMAGE }}:windows-2022
${{ env.IMAGE }}:windows-2022 \
${{ env.IMAGE }}:windows-2025
docker manifest create ${{ env.IMAGE }}:${{ env.VERSION }} \
${{ env.IMAGE }}:${{ env.VERSION }}-linux-amd64 \
${{ env.IMAGE }}:${{ env.VERSION }}-windows-2019 \
${{ env.IMAGE }}:${{ env.VERSION }}-windows-2022
${{ env.IMAGE }}:${{ env.VERSION }}-windows-2022 \
${{ env.IMAGE }}:${{ env.VERSION }}-windows-2025
- name: Publish the Docker multiarch manifest
run: |
Expand Down
2 changes: 1 addition & 1 deletion bin/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ patch=${BASH_REMATCH[3]}


VERSION="${major}.${minor}.${patch}"
echo "VERSION=${VERSION}" >> $GITHUB_ENV
echo "VERSION=${VERSION}" >> "$GITHUB_ENV"
echo "Found version: ${VERSION}"
30 changes: 30 additions & 0 deletions windows/Dockerfile.2025
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# escape=`

# renovate: datasource=github-releases depName=watchtower packageName=containrrr/watchtower
ARG WATCHTOWER_VERSION=1.7.1

FROM mcr.microsoft.com/windows/nanoserver:ltsc2025

USER ContainerAdministrator

LABEL maintainer="Michael Kriese <michael.kriese@visualon.de>" `
org.opencontainers.image.authors="Michael Kriese <michael.kriese@visualon.de>" `
org.opencontainers.image.licenses="MIT" `
org.opencontainers.image.source="https://github.com/visualon/docker-watchtower" `
org.opencontainers.image.url="https://github.com/visualon/docker-watchtower"

LABEL com.centurylinklabs.watchtower="true"

ENTRYPOINT ["/bin/watchtower"]

ENV DOCKER_HOST=npipe:////./pipe/docker_engine

ARG WATCHTOWER_VERSION
LABEL org.opencontainers.image.version="${WATCHTOWER_VERSION}"

RUN `
mkdir tmp && mkdir bin`
&& curl -sSfLo tmp/file.zip https://github.com/containrrr/watchtower/releases/download/v%WATCHTOWER_VERSION%/watchtower_windows_amd64.zip `
&& tar -C c:\bin -oxzf tmp/file.zip watchtower.exe`
&& rmdir /Q /S tmp `
&& /bin/watchtower --help

0 comments on commit 4fb0a65

Please sign in to comment.