Skip to content

Environment name does not support matrix #26594

Answered by GregoireW
SanderKnape asked this question in Actions
Discussion options

You must be logged in to vote

Hello,

I’m able to make this kind of setup work:

deploy-prod:
    name: Deploy prod
    runs-on: linux
    needs: deploy-staging
    strategy:
      matrix:
        include:
          - environment: europe
            url: https://europe.my.service
          - environment: asia
            url: https://asia.my.service
          - environment: america
            url: https://america.my.service
          - environment: africa
            url: https://africa.my.service
    environment:
      url: ${{ matrix.url }}
      name: ${{ matrix.environment }}
    steps:
      - uses: actions/checkout@v2
  - name: deploy
    uses: ./.github/actions/deployments
    with:
      version: ${{ needs.depl…

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@GoodMirek
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
5 participants