Skip to content

Commit 944e75b

Browse files
committed
ee
1 parent a7f3aa6 commit 944e75b

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,7 @@ jobs:
324324
CMS_ADMIN_HOST=${{ fromJSON('["pastaporto-", ""]')[github.ref == 'refs/heads/main'] }}admin.pycon.it
325325
CMS_HOSTNAME=${{ steps.vars.outputs.cms_hostname }}
326326
CONFERENCE_CODE=${{ steps.vars.outputs.conference_code }}
327+
GIT_HASH=${{ steps.git.outputs.githash }}
327328
328329
deploy-fe:
329330
runs-on: ubuntu-latest

frontend/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ ARG API_URL_SERVER
1616
ARG CMS_HOSTNAME
1717
ARG CONFERENCE_CODE
1818
ARG CMS_ADMIN_HOST
19+
ARG GIT_HASH
1920

2021
WORKDIR /app
2122

frontend/next.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ module.exports = withSentryConfig({
2626
process.env.NODE_ENV === "production"
2727
? require.resolve("./cache-handler.mjs")
2828
: undefined,
29+
generateBuildId: async () => {
30+
return process.env.GIT_HASH;
31+
},
2932
cacheMaxMemorySize: 0,
3033
async headers() {
3134
return [

0 commit comments

Comments
 (0)