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 5252 push : true
5353 platforms : linux/amd64,linux/arm64
5454 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 }}
5559 # Commit all changed files back to the repository
5660 - uses : planetscale/ghcommit-action@v0.1.6
5761 with :
8488 heroku_app_name : " dsomm"
8589 heroku_email : timo.pagel@owasp.org
8690 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 11FROM node:24.7.0-alpine3.22 AS build
22
3+ ARG COMMIT_HASH
4+ ARG COMMIT_DATE
5+ ARG GIT_BRANCH
6+
37WORKDIR /usr/src/app
48COPY package.json package-lock.json ./
59
@@ -9,6 +13,11 @@ RUN apk add --upgrade python3 build-base py3-setuptools py3-pip \
913COPY . .
1014RUN npm run build --configuration=production
1115
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+
1221
1322FROM wurstbrot/dsomm-yaml-generation:1.17.0 AS yaml
1423
You can’t perform that action at this time.
0 commit comments