fix: version patch

Signed-off-by: Varun Raj <mailme@varunraj.in>
This commit is contained in:
Varun Raj
2024-09-14 12:17:32 +05:30
parent 7fdb42137c
commit c36f94f381
3 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
run: |
docker build --build-arg VERSION=${{ needs.release.outputs.new-release-version }} \
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 }} \
-t ghcr.io/${{ github.repository }}:latest .
docker push ghcr.io/${{ github.repository }}:latest
+2
View File
@@ -10,3 +10,5 @@ services:
- "3000:3000"
env_file:
- .env
environment:
- BUILD_VERSION=${BUILD_VERSION}
+1 -1
View File
@@ -13,7 +13,7 @@ const nextConfig = {
unoptimized: true,
},
env: {
VERSION: version,
VERSION: process.env.BUILD_VERSION || version,
},
};