-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (43 loc) · 1.22 KB
/
publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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 }}'