Added publish script for putting the images on docker hub
This commit is contained in:
31
.github/workflows/publish.yml
vendored
Normal file
31
.github/workflows/publish.yml
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
name: Publish
|
||||
|
||||
on: [release]
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
push: true
|
||||
tags: tiobesoftware/github-runner-windows:${{ github.ref }}
|
||||
build-args: |
|
||||
SERVERCORE_VERSION="ltsc2022"
|
||||
RUNNER_VERSION="${{ github.ref }}"
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
push: true
|
||||
tags: tiobesoftware/github-runner-windows:${{ github.ref }}-20H2
|
||||
build-args: |
|
||||
SERVERCORE_VERSION="20H2"
|
||||
RUNNER_VERSION="${{ github.ref }}"
|
||||
Reference in New Issue
Block a user