fix build process.
This commit is contained in:
parent
8bd52106bc
commit
d0dd35b913
1 changed files with 10 additions and 2 deletions
12
.github/workflows/bouncer.yml
vendored
12
.github/workflows/bouncer.yml
vendored
|
|
@ -21,6 +21,14 @@ jobs:
|
|||
name: "Bake Bouncer Container"
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- id: date
|
||||
run: |
|
||||
{
|
||||
echo "datetime=$(date +'%Y-%m-%d %H:%M:%S')"
|
||||
echo "date=$(date +'%Y-%m-%d')"
|
||||
echo "time=$(date +'%H:%M:%S')"
|
||||
echo "container_build_datetime=$(date -u +'%Y-%m-%dT%H:%M:%S.%3NZ')"
|
||||
} >> "$GITHUB_OUTPUT"
|
||||
- uses: actions/checkout@v3
|
||||
- uses: docker/setup-qemu-action@v2
|
||||
- uses: docker/setup-buildx-action@v2
|
||||
|
|
@ -48,8 +56,8 @@ jobs:
|
|||
target: bouncer
|
||||
build-args: |
|
||||
GIT_SHA="${{ github.sha }}"
|
||||
BUILD_DATE="$(date -u +"%Y-%m-%dT%H:%M:%SZ")"
|
||||
GIT_COMMIT_MESSAGE="$(git log -1 --pretty=%B)"
|
||||
BUILD_DATE="${{ steps.date.outputs.datetime }}"
|
||||
GIT_COMMIT_MESSAGE="${{ github.event.head_commit.message }}"
|
||||
tags: |
|
||||
benzine/bouncer
|
||||
ghcr.io/benzine-framework/bouncer:latest
|
||||
|
|
|
|||
Loading…
Reference in a new issue