From abdbe3c8fdb494fc294b793747f23fd74b653c3b Mon Sep 17 00:00:00 2001 From: Tom JEANNESSON Date: Tue, 2 Jan 2024 17:41:52 +0100 Subject: [PATCH] tmp --- .github/workflows/deploy.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index b662bff..ea3efd8 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -29,18 +29,22 @@ jobs: - name: Tag Docker image run: | - docker image ls TAG_NAME=$(grep -oP '(?<=## \[)[^\]]+' CHANGELOG.md | head -n 1) echo "Tagging with $TAG_NAME" VERSION=v$TAG_NAME + echo "VERSION=$VERSION" >> $GITHUB_ENV docker tag napse_dtk_prod_litestream ghcr.io/${{ github.repository }}/napse_dtk_prod_litestream:$VERSION docker tag napse_dtk_prod_django ghcr.io/${{ github.repository }}/napse_dtk_prod_django:$VERSION - name: Push Litestream Docker image + env: + VERSION: ${{ env.VERSION }} run: | - docker push ghcr.io/${{ github.repository }}/napse_dtk_prod_litestream:$VERSION + docker push ghcr.io/${{ github.repository }}/napse_dtk_prod_litestream:${{ env.VERSION }} - name: Push Django Docker image + env: + VERSION: ${{ env.VERSION }} run: | - docker push ghcr.io/${{ github.repository }}/napse_dtk_prod_django:$VERSION + docker push ghcr.io/${{ github.repository }}/napse_dtk_prod_django:${{ env.VERSION }}