Skip to content

Commit

Permalink
fx: workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
shivanshs9 committed Nov 10, 2024
1 parent d73f88b commit 88d8232
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ jobs:
description: "Image tag"
value: ${{ steps.vars.outputs.branch }}-${{ steps.vars.outputs.sha_short }}
steps:
- uses: actions/checkout@v4
- name: Docker login to Google Cloud
id: vars
run: |
Expand Down
44 changes: 16 additions & 28 deletions .github/workflows/cd-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,33 +10,21 @@ on:
jobs:
push-backend:
name: Build backend
runs-on: ubuntu-latest
outputs:
version: ${{ steps.build.outputs.tag }}
steps:
- uses: actions/checkout@v4
- uses: ./actions/build-push-gcloud
id: build
with:
google_key: ${{ secrets.GCLOUD_SECRET_KEY }}
repo: services/whisper-notes-backend
dockerfile: backend.Dockerfile
registry: europe-north1-docker.pkg.dev
project_id: ${{ secrets.GCLOUD_PROJECT }}
secrets: inherit
uses: ./.github/workflows/build-push-gcloud.yaml
with:
google_key: ${{ secrets.GCLOUD_SECRET_KEY }}
repo: services/whisper-notes-backend
dockerfile: backend.Dockerfile
registry: europe-north1-docker.pkg.dev
project_id: ${{ secrets.GCLOUD_PROJECT }}
secrets: inherit
push-frontend:
name: Build frontend
runs-on: ubuntu-latest
outputs:
version: ${{ steps.build.outputs.tag }}
steps:
- uses: actions/checkout@v4
- uses: ./actions/build-push-gcloud
id: build
with:
google_key: ${{ secrets.GCLOUD_SECRET_KEY }}
repo: services/whisper-notes-frontend
dockerfile: frontend.Dockerfile
registry: europe-north1-docker.pkg.dev
project_id: ${{ secrets.GCLOUD_PROJECT }}
secrets: inherit
uses: ./.github/workflows/build-push-gcloud.yaml
with:
google_key: ${{ secrets.GCLOUD_SECRET_KEY }}
repo: services/whisper-notes-frontend
dockerfile: frontend.Dockerfile
registry: europe-north1-docker.pkg.dev
project_id: ${{ secrets.GCLOUD_PROJECT }}
secrets: inherit

0 comments on commit 88d8232

Please sign in to comment.