Skip to content

Release: v2.1.4 (#375) #173

Release: v2.1.4 (#375)

Release: v2.1.4 (#375) #173

Workflow file for this run

name: 'Integration'
on:
push:
branches:
- 'main'
- 'release/**/*'
pull_request:
branches:
- 'main'
- 'release/**/*'
workflow_dispatch:
concurrency:
group: '${{ github.workflow }}-${{ github.head_ref || github.ref }}'
cancel-in-progress: true
jobs:
integration:
if: ${{ github.event_name == 'push' || github.repository == github.event.pull_request.head.repo.full_name && github.actor != 'dependabot[bot]' }}
permissions:
contents: 'read'
id-token: 'write'
runs-on: 'ubuntu-latest'
steps:
- uses: 'actions/checkout@v4'
- uses: 'actions/setup-node@v4'
with:
node-version: '20.x'
- name: 'npm build'
run: 'npm ci && npm run build'
- uses: 'google-github-actions/auth@v2'
with:
workload_identity_provider: '${{ vars.WIF_PROVIDER_NAME }}'
service_account: '${{ vars.SERVICE_ACCOUNT_EMAIL }}'
- name: 'Update app.yaml'
run: |-
echo "service: ${{ github.job }}-${{ github.run_number }}" >> ${{ github.workspace }}/example-app/app.yaml
- name: 'Deploy'
id: 'deploy'
uses: './'
with:
working_directory: '${{ github.workspace }}/example-app'
build_env_vars: |-
FOO=bar
ZIP=zap
env_vars: |-
FOO=bar
ZIP=zap
- name: 'Verify deployment'
run: |-
curl '${{ steps.deploy.outputs.url }}' \
--silent \
--fail \
--location \
--retry 5 \
--retry-connrefused \
--retry-delay 5 \
--retry-max-time 300