Skip to content

Commit

Permalink
chore: deploy to google cloud
Browse files Browse the repository at this point in the history
  • Loading branch information
infanf committed Aug 22, 2024
1 parent bb05cb9 commit de8c8dc
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,21 @@ jobs:
tags: ${{ steps.meta-frontend.outputs.tags }}
build-args: |
BUILD_ENV=${{ fromJSON(steps.meta-frontend.outputs.json).labels['org.opencontainers.image.version'] == 'beta' && 'beta' || 'production' }}
deploy-beta:
if: github.ref == 'refs/heads/beta'
needs: build
runs-on: ubuntu-latest
steps:
- uses: 'google-github-actions/auth@v2'
with:
service_account: ${{ secrets.GCP_SA_NAME }}
credentials_json: ${{ secrets.GCP_SA_KEY }}

- name: Deploy to Google Cloud Run
uses: google-github-actions/deploy-cloudrun@main
with:
service: myanili-frontend-beta
image: ${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_IMAGE_FRONTEND }}:beta
region: europe-west1
project_id: ${{ secrets.GCP_PROJECT_ID }}

0 comments on commit de8c8dc

Please sign in to comment.