Skip to content

v2.0.5-1

v2.0.5-1 #4

Workflow file for this run

name: Release Events
on:
release:
types: [published]
permissions:
id-token: write
deployments: write
jobs:
deploy-dev:
name: Deploy to staging
runs-on: ubuntu-latest
if: github.event.release.prerelease == true
environment:
name: dev
steps:
- name: 🚀 Deploy
uses: agrc/cloud-run-docker-deploy-composite-action@v2
with:
identity-provider: ${{ secrets.IDENTITY_PROVIDER }}
service-account-email: ${{ secrets.SERVICE_ACCOUNT_EMAIL }}
project-id: ${{ secrets.PROJECT_ID }}
service: proxy
flags: |
--service-account=cloud-run-sa@${{ secrets.PROJECT_ID }}.iam.gserviceaccount.com
--allow-unauthenticated
env-vars: 'OPEN_QUAD_WORD=${{ secrets.OPEN_QUAD_WORD }}'
deploy-prod:
name: Deploy to production
runs-on: ubuntu-latest
if: github.event.release.prerelease == false
environment:
name: prod
steps:
- name: 🚀 Deploy
uses: agrc/cloud-run-docker-deploy-composite-action@v2
with:
identity-provider: ${{ secrets.IDENTITY_PROVIDER }}
service-account-email: ${{ secrets.SERVICE_ACCOUNT_EMAIL }}
project-id: ${{ secrets.PROJECT_ID }}
service: proxy
flags: |
--service-account=cloud-run-sa@${{ secrets.PROJECT_ID }}.iam.gserviceaccount.com
--allow-unauthenticated
--concurrency=80
--cpu=1
--max-instances=10
--memory=256Mi
--port=8080
--timeout=300s
env-vars: 'OPEN_QUAD_WORD=${{ secrets.OPEN_QUAD_WORD }}'
service-now-instance: ${{ secrets.SN_INSTANCE }}
service-now-table: ${{ secrets.SN_TABLE }}
service-now-system-id: ${{ secrets.SN_SYS_ID }}
service-now-username: ${{ secrets.SN_USERNAME }}
service-now-password: ${{ secrets.SN_PASSWORD }}
repo-token: ${{ secrets.GITHUB_TOKEN }}
notify:
name: Notifications
needs: deploy-prod
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
issues: write
steps:
- name: Release Notifier
uses: agrc/release-issue-notifications-action@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}