diff options
| author | Pol Dellaiera <pol.dellaiera@protonmail.com> | 2024-04-16 11:40:08 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-16 09:40:08 +0000 |
| commit | 1f8454fa545a045478a5689f335b6b143c2ac00e (patch) | |
| tree | 140619cf5bac070cfd78786292b80cc320c8be33 /.github/workflows/docker-image.yml | |
| parent | 401ba82927e2087afc1711e5d62583928f3b378c (diff) | |
Dockerfile: add `ENTRYPOINT` directive (#3798)
Diffstat (limited to '.github/workflows/docker-image.yml')
| -rw-r--r-- | .github/workflows/docker-image.yml | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 77a6a81e..8029d683 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -32,6 +32,9 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 + - name: Get current date + run: echo "TYPST_BUILD_DATE=\"$(date -u +'%Y-%m-%dT%H:%M:%SZ')\" >> ${GITHUB_ENV}" + - name: Setup Docker buildx uses: docker/setup-buildx-action@v3.1.0 with: @@ -59,12 +62,15 @@ jobs: outputs: type=image,name=${{ env.IMAGE_NAME }},push-by-digest=true,name-canonical=true,push=true cache-from: type=gha cache-to: type=gha,mode=max + build-args: | + REVISION=${{ github.sha }} + CREATED=${{ env.TYPST_BUILD_DATE }} - name: Export digest run: | mkdir -p /tmp/digests digest="${{ steps.build.outputs.digest }}" - touch "/tmp/digests/${digest#sha256:}" + touch "/tmp/digests/${digest#sha256:}" - name: Upload digest uses: actions/upload-artifact@v4 |
