From f564b94bdc924d88a21e2f91d11dde4e7d331ecf Mon Sep 17 00:00:00 2001 From: Jo Vandeginste Date: Sun, 26 May 2024 20:12:17 +0200 Subject: [PATCH] Fix the build time in Docker Signed-off-by: Jo Vandeginste --- .github/workflows/docker.yml | 2 ++ .github/workflows/go-release.yml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index e44ebc3b..c5e236d3 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -24,6 +24,8 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v4 + - name: Set BUILD_TIME env + run: echo BUILD_TIME=$(date -u +"%Y-%m-%dT%H:%M:%SZ") >> ${GITHUB_ENV} - name: Set up QEMU uses: docker/setup-qemu-action@v3 - name: Set up Docker Buildx diff --git a/.github/workflows/go-release.yml b/.github/workflows/go-release.yml index 76a4de68..3ecc8213 100644 --- a/.github/workflows/go-release.yml +++ b/.github/workflows/go-release.yml @@ -26,7 +26,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: Set BUILD_TIME env - run: echo BUILD_TIME=$(date -u --rfc-3339=seconds) >> ${GITHUB_ENV} + run: echo BUILD_TIME=$(date -u +"%Y-%m-%dT%H:%M:%SZ") >> ${GITHUB_ENV} - name: Install dependencies run: make install-deps