Skip to content

Commit 3ee9870

Browse files
authored
tag_input
1 parent 90e9918 commit 3ee9870

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/docker.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
password: ${{ secrets.GITHUB_TOKEN }}
2121
- name: Build the hello-docker Docker image
2222
run: |
23-
docker build . --tag ghcr.io/openimis/openimis-mssql:${{ github.event.inputs.tag }}
24-
docker run ghcr.io/openimis/openimis-mssql:${{ github.event.inputs.tag }}
25-
docker push ghcr.io/openimis/openimis-mssql:${{ github.event.inputs.tag }}
23+
TAG_INPUT=${{ github.event.inputs.name }}
24+
docker build . --tag ghcr.io/openimis/openimis-mssql:${TAG_INPUT:-"latest"}
25+
docker run ghcr.io/openimis/openimis-mssql:${TAG_INPUT:-"latest"}
26+
docker push ghcr.io/openimis/openimis-mssql:${TAG_INPUT:-"latest"}

0 commit comments

Comments
 (0)