Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
frontend
Commits
59d192ae
Unverified
Commit
59d192ae
authored
May 25, 2023
by
Igor Stuev
Committed by
GitHub
May 25, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #833 from blockscout/nz-git-sha-fix
Fixing GIT_COMMIT_SHA in docker image
parents
b4ac05b1
681bd097
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
10 deletions
+12
-10
e2e-tests.yml
.github/workflows/e2e-tests.yml
+2
-2
publish-docker-deploy-review-l2.yml
.github/workflows/publish-docker-deploy-review-l2.yml
+2
-2
publish-docker-deploy-review.yml
.github/workflows/publish-docker-deploy-review.yml
+2
-2
Dockerfile
Dockerfile
+6
-4
No files found.
.github/workflows/e2e-tests.yml
View file @
59d192ae
...
@@ -65,8 +65,8 @@ jobs:
...
@@ -65,8 +65,8 @@ jobs:
tags
:
${{ steps.meta.outputs.tags }}
tags
:
${{ steps.meta.outputs.tags }}
labels
:
${{ steps.meta.outputs.labels }}
labels
:
${{ steps.meta.outputs.labels }}
build-args
:
|
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
:
deploy_and_tests
:
# if: github.event.review.state == 'approved'
# if: github.event.review.state == 'approved'
needs
:
push_to_registry
needs
:
push_to_registry
...
...
.github/workflows/publish-docker-deploy-review-l2.yml
View file @
59d192ae
...
@@ -40,7 +40,7 @@ jobs:
...
@@ -40,7 +40,7 @@ jobs:
-
name
:
Add outputs
-
name
:
Add outputs
run
:
|
run
:
|
echo "::set-output name=short-sha::${{ env.
GITHUB_EVENT_PULL_REQUEST_HEAD_SHA_SHORT
}}"
echo "::set-output name=short-sha::${{ env.
SHORT_SHA
}}"
id
:
output-step
id
:
output-step
-
name
:
Build and push
-
name
:
Build and push
...
@@ -53,7 +53,7 @@ jobs:
...
@@ -53,7 +53,7 @@ jobs:
tags
:
ghcr.io/blockscout/frontend:prerelease-${{ env.GITHUB_REF_NAME_SLUG }}
tags
:
ghcr.io/blockscout/frontend:prerelease-${{ env.GITHUB_REF_NAME_SLUG }}
labels
:
${{ steps.meta.outputs.labels }}
labels
:
${{ steps.meta.outputs.labels }}
build-args
:
|
build-args
:
|
GIT_COMMIT_SHA=${{ env.
GITHUB_EVENT_PULL_REQUEST_HEAD_SHA_SHORT
}}
GIT_COMMIT_SHA=${{ env.
SHORT_SHA
}}
deploy_review_l2
:
deploy_review_l2
:
name
:
Deploy review l2
name
:
Deploy review l2
...
...
.github/workflows/publish-docker-deploy-review.yml
View file @
59d192ae
...
@@ -40,7 +40,7 @@ jobs:
...
@@ -40,7 +40,7 @@ jobs:
-
name
:
Add outputs
-
name
:
Add outputs
run
:
|
run
:
|
echo "::set-output name=short-sha::${{ env.
GITHUB_EVENT_PULL_REQUEST_HEAD_SHA_SHORT
}}"
echo "::set-output name=short-sha::${{ env.
SHORT_SHA
}}"
id
:
output-step
id
:
output-step
-
name
:
Build and push
-
name
:
Build and push
...
@@ -53,7 +53,7 @@ jobs:
...
@@ -53,7 +53,7 @@ jobs:
tags
:
ghcr.io/blockscout/frontend:prerelease-${{ env.GITHUB_REF_NAME_SLUG }}
tags
:
ghcr.io/blockscout/frontend:prerelease-${{ env.GITHUB_REF_NAME_SLUG }}
labels
:
${{ steps.meta.outputs.labels }}
labels
:
${{ steps.meta.outputs.labels }}
build-args
:
|
build-args
:
|
GIT_COMMIT_SHA=${{ env.
GITHUB_EVENT_PULL_REQUEST_HEAD_SHA_SHORT
}}
GIT_COMMIT_SHA=${{ env.
SHORT_SHA
}}
deploy_review
:
deploy_review
:
name
:
Deploy review
name
:
Deploy review
...
...
Dockerfile
View file @
59d192ae
...
@@ -26,16 +26,18 @@ ARG NEXT_PUBLIC_SENTRY_DSN
...
@@ -26,16 +26,18 @@ ARG NEXT_PUBLIC_SENTRY_DSN
ARG
SENTRY_CSP_REPORT_URI
ARG
SENTRY_CSP_REPORT_URI
ARG
SENTRY_AUTH_TOKEN
ARG
SENTRY_AUTH_TOKEN
# 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
RUN
yarn build
RUN
yarn build
# Production image, copy all the files and run next
# Production image, copy all the files and run next
FROM
node:18-alpine AS runner
FROM
node:18-alpine AS runner
WORKDIR
/app
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
ENV
NODE_ENV production
# Uncomment the following line in case you want to disable telemetry during runtime.
# Uncomment the following line in case you want to disable telemetry during runtime.
# ENV NEXT_TELEMETRY_DISABLED 1
# ENV NEXT_TELEMETRY_DISABLED 1
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment