Skip to content

inherit secrets in reusable workflows #3

inherit secrets in reusable workflows

inherit secrets in reusable workflows #3

Workflow file for this run

---
name: CICD Pipeline
on:
push:
branches:
- main
jobs:
test:
name: test app
uses: ./.github/workflows/test.yaml
build-dev:
needs: test
name: build-dev
uses: ./.github/workflows/build.yaml
with:
environment: dev
secrets: inherit
deploy-dev:
needs: build-dev
name: deploy-dev
uses: ./.github/workflows/deploy.yaml
with:
environment: dev
secrets: inherit
build-prod:
needs: test
name: build-prod
uses: ./.github/workflows/build.yaml
with:
environment: prod
secrets: inherit
deploy-prod:
needs:
- build-prod
- deploy-dev
name: deploy-prod
uses: ./.github/workflows/deploy.yaml
with:
environment: prod
secrets: inherit