Skip to content

Publish

Publish #3

Workflow file for this run

name: "Publish"
on:
workflow_dispatch:
inputs:
release_tag:
description: "Docker build release tag"
required: true
type: string
workflow_call:
inputs:
release_tag:
required: true
type: string
jobs:
publish:
name: "Publish Docker Container"
runs-on: "ubuntu-latest"
# cancel any other CI attempting to publish to docker
concurrency:
group: publish-container
cancel-in-progress: true
steps:
- name: Checkout Workbench Client
uses: actions/checkout@v4
with:
lfs: true
fetch-depth: 50
# fetch more tag info so git_version.ps1 works properly
- name: Ensure tags are fetched
# Retrieve annotated tags.
run: git fetch --tags --force
- name: Checkout LFS objects
run: git lfs checkout
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_HUB_USER }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
- name: Build and push Docker image
shell: pwsh
run: ./scripts/build_docker.ps1
-github_actor '${{ github.actor }}'
-release_tag '${{ inputs.release_tag }}${{ github.event.inputs.release_tag }}'