Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/callable-build-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ jobs:
platforms: "linux/amd64"
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
BUILDTIME=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.created'] }}
VERSION=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.version'] }}
REVISION=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.revision'] }}

- name: Generate artifact attestation
uses: actions/attest-build-provenance@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/on-pr-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ jobs:
uses: ./.github/workflows/callable-build-docker.yml
secrets: inherit
with:
push: false
push: true
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
FROM node:20.11-alpine
WORKDIR /usr/src/app

ARG BUILDTIME
ARG VERSION
ARG REVISION

ENV BUILDTIME=${BUILDTIME}
ENV VERSION=${VERSION}
ENV REVISION=${REVISION}

COPY package*.json ./
RUN npm install
COPY . .
Expand Down