@@ -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
|
||||
|
||||
@@ -10,3 +10,5 @@ services:
|
||||
- "3000:3000"
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- BUILD_VERSION=${BUILD_VERSION}
|
||||
|
||||
+1
-1
@@ -13,7 +13,7 @@ const nextConfig = {
|
||||
unoptimized: true,
|
||||
},
|
||||
env: {
|
||||
VERSION: version,
|
||||
VERSION: process.env.BUILD_VERSION || version,
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user