From 8849e25af0a0739746cfd58c1cda99b92b7f00a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Minh=20V=C6=B0=C6=A1ng?= Date: Wed, 8 Jan 2025 22:47:08 +0700 Subject: [PATCH] update: add version retrieval step in release and publish workflows --- .github/actions/get-version/action.yml | 3 +-- .github/workflows/release-and-publish.yml | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/actions/get-version/action.yml b/.github/actions/get-version/action.yml index 50b947f..e176df3 100644 --- a/.github/actions/get-version/action.yml +++ b/.github/actions/get-version/action.yml @@ -4,8 +4,7 @@ runs: using: composite steps: - - name: Get version - id: get_version + - name: Get version from script run: | wget https://raw.githubusercontent.com/lzaycoe/brainbox-deployment/refs/heads/main/scripts/get-version.sh sudo apt-get install jq diff --git a/.github/workflows/release-and-publish.yml b/.github/workflows/release-and-publish.yml index 4c46c11..62e30d0 100644 --- a/.github/workflows/release-and-publish.yml +++ b/.github/workflows/release-and-publish.yml @@ -24,6 +24,7 @@ jobs: uses: actions/checkout@v4 - name: Get Version + id: get_version uses: ./.github/actions/get-version - name: Release @@ -48,6 +49,7 @@ jobs: uses: actions/checkout@v4 - name: Get Version + id: get_version uses: ./.github/actions/get-version - name: Login ghcr.io @@ -59,7 +61,6 @@ jobs: - name: Publish image run: | - cd backend docker buildx build . \ -t ghcr.io/${{ github.repository }}:${{ steps.get_version.outputs.version }} \ -t ghcr.io/${{ github.repository }}:latest \