Corrected ref name usage

This commit is contained in:
janssen
2024-09-06 16:22:54 +02:00
parent e9f4176fdf
commit 8a984852ae

View File

@@ -16,19 +16,19 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }} username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }} password: ${{ secrets.DOCKERHUB_TOKEN }}
image: tiobesoftware/github-runner-windows image: tiobesoftware/github-runner-windows
tags: ${{ github.ref }}-20H2 tags: ${{ github.ref_name }}-20H2
registry: docker.io registry: docker.io
buildArgs: | buildArgs: |
SERVERCORE_VERSION="ltsc2022" SERVERCORE_VERSION="ltsc2022"
RUNNER_VERSION="${{ github.ref }}" RUNNER_VERSION="${{ github.ref_name }}"
- name: Build & push (20H2) - name: Build & push (20H2)
uses: mr-smithers-excellent/docker-build-push@v6 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 }}
image: tiobesoftware/github-runner-windows image: tiobesoftware/github-runner-windows
tags: ${{ github.ref }}, latest tags: ${{ github.ref_name }}, latest
registry: docker.io registry: docker.io
buildArgs: | buildArgs: |
SERVERCORE_VERSION="20H2" SERVERCORE_VERSION="20H2"
RUNNER_VERSION="${{ github.ref }}" RUNNER_VERSION="${{ github.ref_name }}"