File tree Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Original file line number Diff line number Diff line change 52
52
push : true
53
53
platforms : linux/amd64,linux/arm64
54
54
tags : wurstbrot/dsomm:${{ steps.get-version.outputs.version }},wurstbrot/dsomm:latest
55
+ build-args : |
56
+ COMMIT_HASH=${{ github.sha }}
57
+ COMMIT_DATE=${{ github.event.head_commit.timestamp }}
58
+ GIT_BRANCH=${{ github.ref_name }}
55
59
# Commit all changed files back to the repository
56
60
-
uses :
planetscale/[email protected]
57
61
with :
84
88
heroku_app_name : " dsomm"
85
89
86
90
branch : ${{ env.HEROKU_BRANCH }}
87
- usedocker : true
91
+ usedocker : true
92
+ docker_build_args : |
93
+ COMMIT_HASH
94
+ COMMIT_DATE
95
+ GIT_BRANCH
96
+ env :
97
+ COMMIT_HASH : ${{ github.sha }}
98
+ COMMIT_DATE : ${{ github.event.head_commit.timestamp }}
99
+ GIT_BRANCH : ${{ github.ref_name }}
Original file line number Diff line number Diff line change 1
1
FROM node:24.7.0-alpine3.22 AS build
2
2
3
+ ARG COMMIT_HASH
4
+ ARG COMMIT_DATE
5
+ ARG GIT_BRANCH
6
+
3
7
WORKDIR /usr/src/app
4
8
COPY package.json package-lock.json ./
5
9
@@ -9,6 +13,11 @@ RUN apk add --upgrade python3 build-base py3-setuptools py3-pip \
9
13
COPY . .
10
14
RUN npm run build --configuration=production
11
15
16
+ RUN mkdir -p /usr/src/app/dist/dsomm/assets && \
17
+ echo "commit: \" ${COMMIT_HASH:-unknown}\" " > /usr/src/app/dist/dsomm/assets/build-info.yaml && \
18
+ echo "commit_date: \" ${COMMIT_DATE:-unknown}\" " >> /usr/src/app/dist/dsomm/assets/build-info.yaml && \
19
+ echo "branch: \" ${GIT_BRANCH:-unknown}\" " >> /usr/src/app/dist/dsomm/assets/build-info.yaml
20
+
12
21
13
22
FROM wurstbrot/dsomm-yaml-generation:1.17.0 AS yaml
14
23
You can’t perform that action at this time.
0 commit comments