Adding GIT_TAG var to docker image

This commit is contained in:
Nick Zenchik
2023-05-25 17:31:26 +04:00
parent 981ccca44c
commit 7136dc1fd0
2 changed files with 4 additions and 2 deletions
+2 -2
View File
@@ -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
+2
View File
@@ -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.