diff --git a/.gitea/workflows/release-latest.yaml b/.gitea/workflows/release-latest.yaml index 2296fbe..997d8ef 100644 --- a/.gitea/workflows/release-latest.yaml +++ b/.gitea/workflows/release-latest.yaml @@ -22,7 +22,7 @@ jobs: - name: Build and push image run: | docker buildx build \ - --build-arg BUILD_DATE="$(date --rfc-3339 seconds)" \ + --build-arg BUILD_DATE="$(date -u +"%Y-%m-%dT%H:%M:%SZ")" \ --file Dockerfile \ --platform linux/arm64 \ --provenance false \ @@ -47,7 +47,7 @@ jobs: - name: Build and push image run: | docker buildx build \ - --build-arg BUILD_DATE="$(date --rfc-3339 seconds)" \ + --build-arg BUILD_DATE="$(date -u +"%Y-%m-%dT%H:%M:%SZ")" \ --file Dockerfile \ --platform linux/amd64 \ --provenance false \ diff --git a/.gitea/workflows/release-tagged.yaml b/.gitea/workflows/release-tagged.yaml index c8053ed..e751c7f 100644 --- a/.gitea/workflows/release-tagged.yaml +++ b/.gitea/workflows/release-tagged.yaml @@ -44,7 +44,7 @@ jobs: - name: Build and push image run: | docker buildx build \ - --build-arg BUILD_DATE="$(date --rfc-3339 seconds)" \ + --build-arg BUILD_DATE="$(date -u +"%Y-%m-%dT%H:%M:%SZ")" \ --build-arg DC_VERSION=${{ steps.version_extraction.outputs.version_raw }} \ --file Dockerfile \ --platform linux/arm64 \ @@ -85,7 +85,7 @@ jobs: - name: Build and push image run: | docker buildx build \ - --build-arg BUILD_DATE="$(date --rfc-3339 seconds)" \ + --build-arg BUILD_DATE="$(date -u +"%Y-%m-%dT%H:%M:%SZ")" \ --build-arg DC_VERSION=${{ steps.version_extraction.outputs.version_raw }} \ --file Dockerfile \ --platform linux/amd64 \ diff --git a/Makefile b/Makefile index e885de5..27a2f51 100644 --- a/Makefile +++ b/Makefile @@ -18,7 +18,7 @@ DC_IMAGE_FULLY_QUALIFIED=${DC_IMAGE_REGISTRY_NAME}/${DC_IMAGE_NAMESPACE}/${DC_IM PHONY:=container-image/build container-image/build: ${CONTAINER_RUNTIME} build \ - --build-arg BUILD_DATE="$(shell date --rfc-3339 seconds)" \ + --build-arg BUILD_DATE="$(shell date -u +"%Y-%m-%dT%H:%M:%SZ")" \ --file Dockerfile \ --no-cache \ --pull \