From 72d770595d308d0834887271f51dc2e7c7530b28 Mon Sep 17 00:00:00 2001 From: JangAyeon <67853616+JangAyeon@users.noreply.github.com> Date: Mon, 15 Apr 2024 00:37:03 +0900 Subject: [PATCH] push docker image to GCP registery --- .github/workflows/build.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index e8de2eb..261672a 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -18,11 +18,11 @@ jobs: project_id: ${{secrets.GOOGLE_PROJECT}} service_account_key: ${{secrets.GOOGLE_APPLICATION_CREDENTIALS}} export_default_credentials: true - + ## gcloud auth configure-docker us-central1-docker.pkg.dev # Configure docker to use the g cloud command-line tool as a credential helper - name: gcloud auth configure-docker run: | - gcloud auth configure-docker us-central1-docker.pkg.dev + gcloud auth print-access-token | docker login -u oauth2accesstoken --password-stdin https://us-central1-docker.pkg.dev # Build docker image - name: Build docker image @@ -36,5 +36,4 @@ jobs: env: GOOGLE_PROJECT: ${{secrets.GOOGLE_PROJECT}} run: | - gcloud auth print-access-token | docker login -u oauth2accesstoken --password-stdin https://us-central1-docker.pkg.dev docker push us-central1-docker.pkg.dev/$GOOGLE_PROJECT/discord-study-docker:$GITHUB_SHA