Skip to content

Commit

Permalink
ci(ci): Fix docker image build time for release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
0xbase12 committed Jul 26, 2024
1 parent a75a343 commit 4e015cc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ jobs:
distribution: 'temurin'
java-version: '21'

- name: Build time
run: echo "BUILD_TIME=$(date --utc +%FT%T.%3NZ)" >> $GITHUB_ENV

- name: Install npm deps
working-directory: code
run: npm ci --legacy-peer-deps
Expand Down Expand Up @@ -96,7 +99,7 @@ jobs:
file: container/Dockerfile
build-args: |
GIT_BRANCH=${{ github.head_ref || github.ref_name }}
GIT_BUILD_TIME=$(date --utc +%FT%T.%3NZ)
GIT_BUILD_TIME=${{ env.BUILD_TIME }}
GIT_COMMIT_ID=${{ github.sha }}
PACKAGE_TAG=${{ needs.trigger-release.outputs.tag_name }}
GITHUB_RUN_NUMBER=${{ github.run_number }}
Expand Down

0 comments on commit 4e015cc

Please sign in to comment.