From 61c8d3eb7529303069018cd0e7201bd5a417f092 Mon Sep 17 00:00:00 2001 From: tomoyane Date: Sat, 13 Apr 2024 23:12:39 +0900 Subject: [PATCH] test --- .github/workflows/_build.yaml | 8 ++++++-- .github/workflows/ci.yaml | 3 ++- 2 files changed, 8 insertions(+), 3 deletions(-) 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