Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom JEANNESSON committed Jan 2, 2024
1 parent 88457b5 commit abdbe3c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit abdbe3c

Please sign in to comment.