From 9fdb3de8c4f6c8ca04c51813b8393df43a714456 Mon Sep 17 00:00:00 2001 From: sylvain-morin Date: Mon, 1 Jul 2024 10:06:41 +0200 Subject: [PATCH] Add build info --- .github/workflows/CICD-dev.yml | 7 ++++++- .github/workflows/CICD-main.yml | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/CICD-dev.yml b/.github/workflows/CICD-dev.yml index adaef930..c9233955 100644 --- a/.github/workflows/CICD-dev.yml +++ b/.github/workflows/CICD-dev.yml @@ -53,7 +53,12 @@ jobs: file: ./Dockerfile-cleanup push: true tags: ${{ secrets.DOCKERHUB_USERNAME }}/inaturalistapi-cleanup:${{ github.ref_name }} - + build-args: | + GIT_BRANCH=${{ github.ref_name }} + GIT_COMMIT=${{ github.sha }} + IMAGE_TAG=${{ secrets.DOCKERHUB_USERNAME }}/inaturalistapi-cleanup:${{ github.ref_name }} + BUILD_DATE=${{ env.BUILD_DATE }} + refresh-dev-staging-deployment: name: Refresh Dev Staging Deployment needs: build-and-push-dev-docker-image diff --git a/.github/workflows/CICD-main.yml b/.github/workflows/CICD-main.yml index 0c28b42a..415c77e1 100644 --- a/.github/workflows/CICD-main.yml +++ b/.github/workflows/CICD-main.yml @@ -56,7 +56,12 @@ jobs: tags: | ${{ secrets.DOCKERHUB_USERNAME }}/inaturalistapi-cleanup:${{ github.sha }} ${{ secrets.DOCKERHUB_USERNAME }}/inaturalistapi-cleanup:latest - + build-args: | + GIT_BRANCH=${{ github.ref_name }} + GIT_COMMIT=${{ github.sha }} + IMAGE_TAG=${{ secrets.DOCKERHUB_USERNAME }}/inaturalistapi-cleanup:latest + BUILD_DATE=${{ env.BUILD_DATE }} + refresh-main-staging-deployment: name: Refresh Main Staging Deployment needs: build-and-push-main-docker-image