Skip to content

Commit f0c0590

Browse files
docker changes reverted
1 parent cf7559b commit f0c0590

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/docker-build-and-push.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,15 @@ jobs:
3939
username: ${{ secrets.ACR_USERNAME }}
4040
password: ${{ secrets.ACR_PASSWORD }}
4141

42-
4342
- name: Set Docker image tag
4443
run: |
45-
if [[ "${{ github.head.ref }}" == "main" ]]; then
44+
if [[ "${{ github.ref }}" == "refs/heads/main" ]]; then
4645
echo "TAG=latest" >> $GITHUB_ENV
47-
elif [[ "${{ github.head.ref }}" == "dev" ]]; then
46+
elif [[ "${{ github.ref }}" == "refs/heads/dev" ]]; then
4847
echo "TAG=dev" >> $GITHUB_ENV
49-
elif [[ "${{ github.head.ref }}" == "demo" ]]; then
48+
elif [[ "${{ github.ref }}" == "refs/heads/demo" ]]; then
5049
echo "TAG=demo" >> $GITHUB_ENV
51-
elif [[ "${{ github.head.ref }}" == "hotfix" ]]; then
50+
elif [[ "${{ github.ref }}" == "refs/heads/hotfix" ]]; then
5251
echo "TAG=hotfix" >> $GITHUB_ENV
5352
else
5453
echo "TAG=pullrequest-ignore" >> $GITHUB_ENV

0 commit comments

Comments
 (0)