Skip to content

Sharing environment accross jobs #150254

Answered by axelopale
axelopale asked this question in Actions
Discussion options

You must be logged in to vote

I'm answering my own question in case someone has the same question: it has to be done in the children workflows:

name: Build and Deploy

on: 
  workflow_call:
    inputs:
      environment: 
        required: true
        type: string
jobs: 
  build_release:
    name: Build docker and deploy
    environment: ${{ inputs.environment }}

The environment is passed to the child from the parent.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by axelopale
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Actions Build, test, and automate your deployment pipeline with world-class CI/CD Question
1 participant