File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -2,9 +2,16 @@ name: release-container-image
2
2
3
3
on :
4
4
push :
5
+ branches :
6
+ - master
5
7
tags :
6
8
- ' [0-9]+.[0-9]+.[0-9]+*'
7
9
workflow_dispatch : # Manual Trigger
10
+ inputs :
11
+ docker_tag :
12
+ description : ' Docker tag to use'
13
+ required : true
14
+ default : ' dev'
8
15
9
16
jobs :
10
17
docker :
@@ -21,10 +28,22 @@ jobs:
21
28
22
29
- name : Set up Docker Buildx
23
30
uses : docker/setup-buildx-action@v3
31
+
32
+ - name : Get the tag
33
+ run : |
34
+ TAG=${{ github.ref_name }}
35
+ if [[ $TAG == "master" ]]; then
36
+ TAG=latest
37
+ fi
38
+ MANUAL_WORKFLOW_TAG=${{ inputs.docker_tag }}
39
+ if [[ $MANUAL_WORKFLOW_TAG != "" ]]; then
40
+ TAG=${{ inputs.docker_tag }}
41
+ fi
42
+ echo "Using tag $TAG"
24
43
25
44
- name : Build and push
26
45
uses : docker/build-push-action@v6
27
46
with :
28
47
platforms : linux/amd64,linux/arm64
29
48
push : true
30
- tags : docker.io/datastax/pulsar-admin-console:${{ github.ref_name }}
49
+ tags : docker.io/datastax/pulsar-admin-console:$TAG
You can’t perform that action at this time.
0 commit comments