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