Skip to content

Commit 2902381

Browse files
committed
workaround not having a release to read the version from
1 parent d2057c9 commit 2902381

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/webhook-bridge-release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,10 @@ jobs:
2525
uses: docker/setup-buildx-action@v2
2626

2727
- name: Derive Version Numbers
28+
# FIXME: don't have a release name when running on a branch push - hardcode to 0.0.0 for now
2829
run: |
2930
export REPO="${{ secrets.DOCKERHUB_USERNAME }}/svix-webhook-bridge"
30-
echo DOCKER_TAGS="$(echo "${{ github.event.release.tag_name }}" | sed -E "s#v([0-9]+)\.([0-9]+)\.([0-9]+)#${REPO}:latest,${REPO}:v\1.\2.\3,${REPO}:v\1.\2,${REPO}:v\1#")" >> "$GITHUB_ENV"
31+
echo DOCKER_TAGS="$(echo "v0.0.0" | sed -E "s#v([0-9]+)\.([0-9]+)\.([0-9]+)#${REPO}:latest,${REPO}:v\1.\2.\3,${REPO}:v\1.\2,${REPO}:v\1#")" >> "$GITHUB_ENV"
3132
3233
- name: Build and push Docker image
3334
uses: docker/build-push-action@v2

0 commit comments

Comments
 (0)