Skip to content

Commit

Permalink
Update pipeline to move away from google cloud buil #49
Browse files Browse the repository at this point in the history
  • Loading branch information
zachale committed Oct 26, 2024
1 parent d8277ba commit c56da3e
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
push:
branches:
- main
env:
REGION: us-central1
jobs:
deploy:
name: Deploy
Expand All @@ -14,7 +16,11 @@ jobs:
uses: "google-github-actions/auth@v2"
with:
credentials_json: "${{ secrets.GOOGLE_CREDENTIALS }}"
- name: Build and Push Container Image
run: gcloud builds submit --region=us-central1 --tag ${{ secrets.CONTAINER_IMAGE_URL }} --project imaginate-439222
- name: Configure Docker
run: gcloud auth configure-docker ${{ env.REGION }}-docker.pkg.dev --quiet
- name: Build Docker Container
run: docker build . -t ${{ secrets.CONTAINER_IMAGE_URL }}
- name: Push Docker Container to Google Cloud
run: docker push ${{ secrets.CONTAINER_IMAGE_URL }}
- name: Deploy to Google Cloud Run
run: gcloud run deploy imaginate-api --image ${{ secrets.CONTAINER_IMAGE_URL }}
run: gcloud run deploy imaginate-api --image ${{ secrets.CONTAINER_IMAGE_URL }} --region ${{ env.REGION }}

0 comments on commit c56da3e

Please sign in to comment.