mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
Adding GIT_TAG var to docker image
This commit is contained in:
@@ -65,8 +65,8 @@ jobs:
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
build-args: |
|
||||
GIT_COMMIT_SHA=${{ env.GITHUB_SHA_SHORT }}
|
||||
|
||||
GIT_COMMIT_SHA=${{ env.SHORT_SHA }}
|
||||
GIT_TAG=${{ github.ref_type == 'tag' && github.github.ref_name || '' }}
|
||||
deploy_and_tests:
|
||||
# if: github.event.review.state == 'approved'
|
||||
needs: push_to_registry
|
||||
|
||||
@@ -35,6 +35,8 @@ WORKDIR /app
|
||||
# pass commit sha to the app (uses by sentry.io as release version)
|
||||
ARG GIT_COMMIT_SHA
|
||||
ENV NEXT_PUBLIC_GIT_COMMIT_SHA=$GIT_COMMIT_SHA
|
||||
ARG GIT_TAG
|
||||
ENV NEXT_PUBLIC_GIT_TAG=$GIT_TAG
|
||||
|
||||
ENV NODE_ENV production
|
||||
# Uncomment the following line in case you want to disable telemetry during runtime.
|
||||
|
||||
Reference in New Issue
Block a user