Skip to content

Commit

Permalink
push docker image to GCP registery
Browse files Browse the repository at this point in the history
  • Loading branch information
JangAyeon committed Apr 14, 2024
1 parent e3c185c commit 72d7705
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 72d7705

Please sign in to comment.