Skip to content

Commit

Permalink
Merge pull request #98 from chasinandrew/feature/test-gh
Browse files Browse the repository at this point in the history
Feature/test gh
  • Loading branch information
chasinandrew authored Oct 3, 2023
2 parents 7235a09 + d33b2e9 commit b5bc170
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/_deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
type: string
required: true
description: Name of the target deployment environment. Acceptable values are 'dev', 'qa', or 'prod'

jobs:
lint: #TODO: add linter for csharp / dotnet
name: Lint
Expand Down Expand Up @@ -168,12 +169,22 @@ jobs:
export EXISTING_REVISION=${{ inputs.existing_revision }}
export EXISTING_REVISION_PERCENTAGE=${{ inputs.existing_revision_percentage }}
envsubst < ./service-yaml/container-canary.yaml > container-canary.yaml
- name: Deploy to ${{ inputs.environment }} Cloud Run
id: deploy-dev-qa
if: github.event != 'workflow_dispatch'
uses: google-github-actions/deploy-cloudrun@v0
with:
project_id: ${{ vars.gcp_project_id }}
service: ${{ vars.service_name }}
region: ${{ vars.region }}
metadata: container-${{ inputs.environment }}.yaml

- name: Deploy to ${{ inputs.environment }} Cloud Run
id: deploy-dev-qa-canary
id: deploy-canary
uses: google-github-actions/deploy-cloudrun@v0
with:
project_id: ${{ vars.gcp_project_id }}
service: ${{ vars.service_name }}
region: ${{ vars.region }}
metadata: container-${{ inputs.environment }}.yaml
metadata: container-canary.yaml
1 change: 1 addition & 0 deletions .github/workflows/deployment-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ jobs:
token_format: 'access_token'
workload_identity_provider: '${{ secrets.WIF_PROVIDER }}' # e.g. - projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider
service_account: '${{ secrets.WIF_SERVICE_ACCOUNT }}' # e.g. - [email protected]

- name: Create Service ${{ inputs.environment }} Declaration
run: |-
export CONTAINER_IMAGE="${{ vars.region }}-docker.pkg.dev/${{ vars.gcp_project_id }}/${{ vars.artifact_registry_repo }}/${{ vars.service_name }}:${{ vars.ref }}"
Expand Down

0 comments on commit b5bc170

Please sign in to comment.