Deploy of pinga to tools by @sprutton1 #59
Workflow file for this run
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 Services | ||
run-name: Deploy of ${{ inputs.service }} to ${{ inputs.environment }} by @${{ github.actor }} | ||
on: | ||
workflow_call: | ||
inputs: | ||
environment: | ||
type: choice | ||
Check failure on line 9 in .github/workflows/deploy-stack.yml GitHub Actions / Deploy ServicesInvalid workflow file
|
||
required: true | ||
default: "tools" | ||
options: | ||
- tools | ||
- production | ||
service: | ||
type: choice | ||
required: true | ||
options: | ||
- all | ||
- pinga | ||
- rebaser | ||
- sdf | ||
- veritech | ||
- web | ||
version: | ||
type: string | ||
required: true | ||
default: "stable" | ||
workflow_dispatch: | ||
inputs: | ||
environment: | ||
type: choice | ||
required: true | ||
description: "where to deploy" | ||
default: "tools" | ||
options: | ||
- tools | ||
- production | ||
service: | ||
type: choice | ||
required: true | ||
description: "service to deploy" | ||
options: | ||
- all | ||
- pinga | ||
- rebaser | ||
- sdf | ||
- veritech | ||
- web | ||
version: | ||
type: string | ||
required: true | ||
description: "version to deploy" | ||
default: "stable" | ||
jobs: | ||
invalidate-cache: | ||
uses: ./.github/workflows/invalidate-cache.yml | ||
with: | ||
environment: shared | ||
secrets: inherit | ||
deploy-service: | ||
needs: invalidate-cache | ||
if: ${{ github.event.inputs.service != 'all' }} | ||
uses: ./.github/workflows/deploy-service.yml | ||
with: | ||
environment: ${{ github.event.inputs.environment }} | ||
service: ${{ github.event.inputs.service }} | ||
version: ${{ github.event.inputs.version }} | ||
secrets: inherit | ||
deploy-services: | ||
needs: invalidate-cache | ||
if: ${{ github.event.inputs.service == 'all' }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
service: ["pinga", "rebaser", "sdf", "veritech", "web"] | ||
uses: ./.github/workflows/deploy-service.yml | ||
with: | ||
environment: ${{ github.event.inputs.environment }} | ||
service: ${{ matrix.service }} | ||
version: ${{ github.event.inputs.version }} | ||
secrets: inherit | ||
set-init: | ||
needs: invalidate-cache | ||
uses: ./.github/workflows/set-init-version.yml | ||
with: | ||
environment: ${{ github.event.inputs.environment }} | ||
service: ${{ github.event.inputs.service }} | ||
version: ${{ github.event.inputs.version }} | ||
secrets: inherit |