refactor(contributors): increase timeout for API request #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy to staging | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- 'master' | |
paths: | |
- '**.js*' | |
- '**.ts*' | |
- 'package*.json' | |
- 'Dockerfile' | |
- 'entrypoint.sh' | |
- '.github/workflows/deploy-to-staging.yml' | |
concurrency: | |
# Ensures that only one workflow task will run at a time. Previous builds, if | |
# already in process, will get cancelled. Only the latest commit will be allowed | |
# to run, cancelling any workflows in between | |
group: ${{ github.workflow }}-${{ github.job }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
uses: ./.github/workflows/build-docker-image.yml | |
with: | |
dockerfile_path: ./Dockerfile | |
dockerfile_target: release | |
app_name: ${{ vars.APP_NAME }} | |
registry: ${{ vars.GCP_REGISTRY}} | |
secrets: inherit | |
deploy: | |
needs: ['build'] | |
uses: ./.github/workflows/cloudrun-deploy.yml | |
with: | |
default_name: master | |
environment: production | |
project: ${{ vars.GCP_PROJECT }} | |
region: us-east1 | |
image: ${{ vars.GCP_IMAGE}}@${{ needs.build.outputs.image_digest }} | |
secrets: inherit |