From 071a1cc3e04d74c6131e6b902a32b3fae8ff8085 Mon Sep 17 00:00:00 2001 From: Toan Nguyen Date: Sat, 13 Apr 2024 17:55:32 +0700 Subject: [PATCH] fix workflow --- .github/workflows/release.yaml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index d8d0519..e77c329 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -28,8 +28,14 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} + - name: Get version from tag + id: get-version + run: | + echo "tagged_version=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT + shell: bash + - name: Build and push uses: docker/build-push-action@v5 with: - push: false - tags: ghcr.io/hasura/ndc-rest:${{ github.ref }} + push: true + tags: ghcr.io/hasura/ndc-rest:${{ github.ref_name }}