From b5539ab5c17c67696edb888d88b86b20d9733cf6 Mon Sep 17 00:00:00 2001 From: Nathan Clerkx Date: Thu, 14 Dec 2023 10:43:43 +0100 Subject: [PATCH] use correct paramters --- .github/workflows/deploy_function.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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