Merge branch 'ci-docker-versioning' of https://github.com/varun-raj/immich-power-tools into feat-nov-release

This commit is contained in:
Varun Raj
2024-11-23 13:03:21 +05:30
4 changed files with 5 additions and 11 deletions
+2 -2
View File
@@ -43,8 +43,8 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
run: |
docker build --build-arg BUILD_VERSION=${{ needs.release.outputs.new-release-version }} VERSION=${{ needs.release.outputs.new-release-version }} \
-t ghcr.io/${{ github.repository }}:${{ needs.release.outputs.new-release-version }} \
echo VERSION=${{ needs.release.outputs.new-release-version }} >> .env
docker build -t ghcr.io/${{ github.repository }}:${{ needs.release.outputs.new-release-version }} \
-t ghcr.io/${{ github.repository }}:latest .
docker push ghcr.io/${{ github.repository }}:latest
docker push ghcr.io/${{ github.repository }}:${{ needs.release.outputs.new-release-version }}