Skip to content

Commit 162bc94

Browse files
committed
Fix build workflow
1 parent c24ff9c commit 162bc94

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,14 +96,14 @@ jobs:
9696
--file Dockerfile .
9797
-
9898
name: Docker Login
99-
if: success() && startsWith(github.ref, 'refs/tags/v')
99+
if: success() && startsWith(github.ref, 'refs/tags/')
100100
env:
101101
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
102102
run: |
103103
echo "${DOCKER_PASSWORD}" | docker login --username "${{ steps.prepare.outputs.docker_username }}" --password-stdin
104104
-
105105
name: Docker Buildx (push)
106-
if: success() && startsWith(github.ref, 'refs/tags/v')
106+
if: success() && startsWith(github.ref, 'refs/tags/')
107107
run: |
108108
docker buildx build --platform ${{ steps.prepare.outputs.docker_platforms }} \
109109
--output "type=image,push=true" \
@@ -116,11 +116,11 @@ jobs:
116116
--file Dockerfile .
117117
-
118118
name: Docker Check Manifest
119-
if: always() && startsWith(github.ref, 'refs/tags/v')
119+
if: always() && startsWith(github.ref, 'refs/tags/')
120120
run: |
121121
docker run --rm mplatform/mquery ${{ steps.prepare.outputs.docker_image }}:${{ steps.prepare.outputs.version }}
122122
-
123123
name: Clear
124-
if: always() && startsWith(github.ref, 'refs/tags/v')
124+
if: always() && startsWith(github.ref, 'refs/tags/')
125125
run: |
126126
rm -f ${HOME}/.docker/config.json

0 commit comments

Comments
 (0)