diff --git a/.github/workflows/CICD-dev.yml b/.github/workflows/CICD-dev.yml index 1f9d6d7d..ed2a33a8 100644 --- a/.github/workflows/CICD-dev.yml +++ b/.github/workflows/CICD-dev.yml @@ -26,10 +26,13 @@ jobs: with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - + - 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 Dev inaturalistapi uses: docker/build-push-action@v5 with: @@ -41,7 +44,7 @@ jobs: GIT_BRANCH=${{ github.ref_name }} GIT_COMMIT=${{ github.sha }} IMAGE_TAG=${{ secrets.DOCKERHUB_USERNAME }}/inaturalistapi:${{ github.ref_name }} - BUILD_DATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ") + BUILD_DATE=${{ env.BUILD_DATE }} refresh-dev-staging-deployment: name: Refresh Dev Staging Deployment diff --git a/.github/workflows/CICD-main.yml b/.github/workflows/CICD-main.yml index 1a05c314..c855077f 100644 --- a/.github/workflows/CICD-main.yml +++ b/.github/workflows/CICD-main.yml @@ -28,7 +28,7 @@ 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")"