From e10f748f56d5511e867b488d1ae43c91a1bab3ed Mon Sep 17 00:00:00 2001 From: sylvain-morin Date: Thu, 13 Jun 2024 10:06:32 +0200 Subject: [PATCH] Add build info --- .github/workflows/CICD-main.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/CICD-main.yml b/.github/workflows/CICD-main.yml index 1f0b6a6b..1a05c314 100644 --- a/.github/workflows/CICD-main.yml +++ b/.github/workflows/CICD-main.yml @@ -29,6 +29,9 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 + - name: Set build date + run: echo "BUILD_DATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ")" + - name: Build/Push Main inaturalistapi uses: docker/build-push-action@v5 with: @@ -42,7 +45,7 @@ jobs: GIT_BRANCH=${{ github.ref_name }} GIT_COMMIT=${{ github.sha }} IMAGE_TAG=${{ secrets.DOCKERHUB_USERNAME }}/inaturalistapi:latest - BUILD_DATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ") + BUILD_DATE=${{ env.BUILD_DATE }} refresh-main-staging-deployment: name: Refresh Main Staging Deployment