Skip to content

Commit

Permalink
add gitaction for build
Browse files Browse the repository at this point in the history
  • Loading branch information
JangAyeon committed Apr 14, 2024
1 parent 9c2ede8 commit 7a9ac6f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ jobs:
service_account_key: ${{secrets.GOOGLE_APPLICATION_CREDENTIALS}}
export_default_credentials: true

# Configure docker to use the gcloud 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 and Push docker image
env:
GOOLE_PROJECT: ${{secrets.GOOGLE_PROJECT}}
run: |-
docker build -f Dockerfile -t us-central1-docker.pkg.dev/$GOOGLE_PROJECT/discord-study-docker:$GITHUB_SHA .

0 comments on commit 7a9ac6f

Please sign in to comment.