diff --git a/.github/workflows/_build.yaml b/.github/workflows/_build.yaml index 3a4928a..2118efb 100644 --- a/.github/workflows/_build.yaml +++ b/.github/workflows/_build.yaml @@ -6,7 +6,9 @@ on: type: string service_account: type: string - gar_path: + gar_repository: + type: string + gar_dst: type: string jobs: build: @@ -26,6 +28,8 @@ jobs: uses: google-github-actions/setup-gcloud@v2 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 + - name: Log in to GAR + run: gcloud auth configure-docker ${{ inputs.gar_repository }} - name: Build and push id: docker_build uses: docker/build-push-action@v5 @@ -35,4 +39,4 @@ jobs: platforms: linux/amd64 push: true tags: | - ${{ inputs.gar_path }}:latest + ${{ inputs.gar_dst }}:latest diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index d39313d..702eb7f 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -27,4 +27,5 @@ jobs: with: workload_identity_provider: projects/723082692741/locations/global/workloadIdentityPools/github-oidc-pool/providers/github-provider service_account: reearth-dev-github-oidc@reearth-development.iam.gserviceaccount.com - gar_path: asia-northeast1-docker.pkg.dev/reearth-development/eukarya/notion-proxy + gar_repository: asia-northeast1-docker.pkg.dev + gar_dst: asia-northeast1-docker.pkg.dev/reearth-development/eukarya/notion-proxy