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 8c4401b commit 2ed9bfb
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,15 @@ jobs:
gcloud auth configure-docker us-central1-docker.pkg.dev
# Build docker image
- name: Build and Push 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 .
# 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

0 comments on commit 2ed9bfb

Please sign in to comment.