Skip to content

Commit 720c4c9

Browse files
authored
manual only on tag
1 parent 2415c3b commit 720c4c9

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/docker.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: publish
22
on:
3-
release:
3+
workflow_dispatch:
4+
inputs:
5+
tag:
6+
description: build tag
7+
required: false
48
jobs:
59
publish-docker-image:
610
runs-on: ubuntu-latest
@@ -14,6 +18,6 @@ jobs:
1418
password: ${{ secrets.GITHUB_TOKEN }}
1519
- name: Build the hello-docker Docker image
1620
run: |
17-
docker build . --tag ghcr.io/openimis/openimis-mssql:${GITHUB_REF##*/}
18-
docker run ghcr.io/openimis/openimis-mssql:${GITHUB_REF##*/}
19-
docker push ghcr.io/openimis/openimis-mssql:${GITHUB_REF##*/}
21+
docker build . --tag ghcr.io/openimis/openimis-mssql:${{ github.event.inputs.tag }}
22+
docker run ghcr.io/openimis/openimis-mssql:${{ github.event.inputs.tag }}
23+
docker push ghcr.io/openimis/openimis-mssql:${{ github.event.inputs.tag }}

0 commit comments

Comments
 (0)