Skip to content

Commit 14e78d9

Browse files
committed
ci: add build number in docker build GitHub workflow
1 parent 21043ba commit 14e78d9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/build-push-webapp-server-docker-images.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ env:
2424
# Change the Container Registry information below if necessary
2525
REGISTRY: ghcr.io
2626
REPOSITORY_NAME: ${{ github.repository }}
27+
REACT_APP_BUILD_NUMBER: ${{ github.sha }}
2728
# PUBLIC_URL is only required when building the server in instance-specific mode
2829
#PUBLIC_URL: /cosmotech-webapp/brewery
2930

@@ -79,7 +80,8 @@ jobs:
7980
# Target stage can be either server-universal or server-specific (default)
8081
target: server-universal
8182
# PUBLIC_URL is only required when building the server in instance-specific mode
82-
#build-args: |
83+
build-args: |
84+
"REACT_APP_BUILD_NUMBER=${{ env.REACT_APP_BUILD_NUMBER }}"
8385
# "PUBLIC_URL=${{ env.PUBLIC_URL }}"
8486

8587
- name: "webapp-functions: extract Docker metadata (tags, labels)"

0 commit comments

Comments
 (0)