diff --git a/.github/workflows/deploy_function.yml b/.github/workflows/deploy_function.yml index 32362fd2a..a734ddc98 100644 --- a/.github/workflows/deploy_function.yml +++ b/.github/workflows/deploy_function.yml @@ -53,7 +53,8 @@ on: env: PROJECT_ID: dgds-i1000482-002 GAR_LOCATION: europe-west4 - SERVICE: gca-report-generation + SERVICE: gca-report-function + REPOSITORY: gca-artifacts REGION: europe-west4 # TODO: update Cloud Run service region jobs: @@ -90,8 +91,8 @@ jobs: - name: Build and Push Container working-directory: App/functions/report-python-cloud-run run: |- - docker build -t "${{ env.GAR_LOCATION }}-docker.pkg.dev/${{ env.PROJECT_ID }}/${{ env.SERVICE }}:${{ github.sha }}" . - docker push "${{ env.GAR_LOCATION }}-docker.pkg.dev/${{ env.PROJECT_ID }}/${{ env.SERVICE }}:${{ github.sha }}" + docker build -t "${{ env.GAR_LOCATION }}-docker.pkg.dev/${{ env.PROJECT_ID }}/${{ env.REPOSITORY }}:${{ github.sha }}" . + docker push "${{ env.GAR_LOCATION }}-docker.pkg.dev/${{ env.PROJECT_ID }}/${{ env.REPOSITORY }}:${{ github.sha }}" # END - Docker auth and build @@ -102,7 +103,7 @@ jobs: service: ${{ env.SERVICE }} region: ${{ env.REGION }} # NOTE: If using a pre-built image, update the image name here - image: ${{ env.GAR_LOCATION }}-docker.pkg.dev/${{ env.PROJECT_ID }}/${{ env.SERVICE }}:${{ github.sha }} + image: ${{ env.GAR_LOCATION }}-docker.pkg.dev/${{ env.PROJECT_ID }}/${{ env.REPOSITORY }}:${{ github.sha }} # If required, use the Cloud Run url output in later steps - name: Show Output