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 521bb05 commit cbfcc64
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,9 @@ jobs:
## 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
# Build docker image
- name: Build docker image
env:
GOOGLE_PROJECT: ${{secrets.GOOGLE_PROJECT}}
run: |
docker build -f Dockerfile -t us-central1-docker.pkg.dev/$GOOGLE_PROJECT/discord-study-docker:$GITHUB_SHA .
- run: |
gcloud auth configure-docker us-central1-docker.pkg.dev
# Push docker image
- name: Push docker image
env:
GOOGLE_PROJECT: ${{secrets.GOOGLE_PROJECT}}
run: |
docker push us-central1-docker.pkg.dev/$GOOGLE_PROJECT/discord-study-docker:$GITHUB_SHA
docker build -f Dockerfile -t us-central1-docker.pkg.dev/$GOOGLE_PROJECT/discord-study-docker/discord-study-docker:$GITHUB_SHA .
docker push us-central1-docker.pkg.dev/$GOOGLE_PROJECT/discord-study-docker/discord-study-docker:$GITHUB_SHA

0 comments on commit cbfcc64

Please sign in to comment.