Using mr-smithers-excellent to support windows docker

This commit is contained in:
janssen
2024-09-06 16:13:27 +02:00
parent b05f4fb70e
commit 7a0642ffa8

View File

@@ -6,26 +6,27 @@ jobs:
publish: publish:
runs-on: windows-latest runs-on: windows-latest
steps: steps:
- name: Set up Docker Buildx - name: Checkout
uses: docker/setup-buildx-action@v3 uses: actions/checkout@v4
- name: Login to Docker Hub - name: Build & push (ltsc2022)
uses: docker/login-action@v3 uses: mr-smithers-excellent/docker-build-push@v6
with: with:
username: ${{ secrets.DOCKERHUB_USERNAME }} username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }} password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push image: tiobesoftware/github-runner-windows
uses: docker/build-push-action@v6 tags: ${{ github.ref }}-20H2
with: registry: docker.io
push: true buildArgs: |
tags: tiobesoftware/github-runner-windows:${{ github.ref }}
build-args: |
SERVERCORE_VERSION="ltsc2022" SERVERCORE_VERSION="ltsc2022"
RUNNER_VERSION="${{ github.ref }}" RUNNER_VERSION="${{ github.ref }}"
- name: Build and push - name: Build & push (20H2)
uses: docker/build-push-action@v6 uses: mr-smithers-excellent/docker-build-push@v6
with: with:
push: true username: ${{ secrets.DOCKERHUB_USERNAME }}
tags: tiobesoftware/github-runner-windows:${{ github.ref }}-20H2 password: ${{ secrets.DOCKERHUB_TOKEN }}
build-args: | image: tiobesoftware/github-runner-windows
tags: ${{ github.ref }}, latest
registry: docker.io
buildArgs: |
SERVERCORE_VERSION="20H2" SERVERCORE_VERSION="20H2"
RUNNER_VERSION="${{ github.ref }}" RUNNER_VERSION="${{ github.ref }}"