Skip to content

Commit

Permalink
Merge pull request #57 from varun-raj/feat-user-experience-updates
Browse files Browse the repository at this point in the history
fix: version patch
  • Loading branch information
varun-raj authored Sep 14, 2024
2 parents 90ed523 + c36f94f commit b2d517d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions docker-compose.build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ services:
- "3000:3000"
env_file:
- .env
environment:
- BUILD_VERSION=${BUILD_VERSION}
2 changes: 1 addition & 1 deletion next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const nextConfig = {
unoptimized: true,
},
env: {
VERSION: version,
VERSION: process.env.BUILD_VERSION || version,
},
};

Expand Down

0 comments on commit b2d517d

Please sign in to comment.