Skip to content

Commit

Permalink
Deploys to Cloud Run
Browse files Browse the repository at this point in the history
  • Loading branch information
mario8705 committed Dec 2, 2023
1 parent b01c329 commit 7ecfeb0
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,20 +55,21 @@ jobs:
name: frontend-data
path: frontend/dist

- id: 'deploy'
- name: Build, tag and push container
id: build-image
uses: docker/build-push-action@v3
with:
context: frontend/
push: true
tags: |
europe-west9-docker.pkg.dev/magnetic-lore-402317/transcendence/frontend:${{ inputs.ref }}
- name: 'Deploy to Cloud Run'
id: 'deploy'
uses: 'google-github-actions/deploy-cloudrun@v1'
with:
service: 'hello-cloud-run'
image: 'gcr.io/cloudrun/hello'
service: 'transcendence-frontend'
image: europe-west9-docker.pkg.dev/magnetic-lore-402317/transcendence/frontend:${{ inputs.ref }}

- name: 'Use output'
run: 'curl "${{ steps.deploy.outputs.url }}"'

# - name: Build, tag and push container
# id: build-image
# uses: docker/build-push-action@v3
# with:
# context: ${{ vars.code_directory }}
# push: true
# tags: |
# ${{ vars.REGION }}-docker.pkg.dev/${{ vars.GCP_PROJECT_ID }}/${{ vars.ARTIFACT_REPO }}/${{ vars.SERVICE_NAME }}:${{ inputs.ref }}

0 comments on commit 7ecfeb0

Please sign in to comment.