Skip to content

Commit

Permalink
Staging include env
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasz-wal committed Sep 2, 2024
1 parent c89145c commit d0b5525
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/deploy-new-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,16 @@ jobs:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
matrix_include: ${{ steps.set-matrix.outputs.matrix_include }}
steps:
- name: Determine matrix
id: set-matrix
run: |
if [[ "${{ github.event_name }}" == "pull_request" ]]; then
echo "::set-output name=matrix::['staging']"
echo "::set-output name=matrix_include::{include: [
{ "build-type": "staging", "tag_suffix": "stg", "environment": "staging" }
]}"
else
echo "::set-output name=matrix::['production', 'staging']"
fi
Expand All @@ -38,13 +42,14 @@ jobs:
build-type: ${{ fromJSON(needs.prepare-matrix.outputs.matrix) }}

include:
- build-type: production
tag_suffix: prod
environment: production-fidl
${{ fromJSON(needs.prepare-matrix.outputs.matrix_include) }}
# - build-type: production
# tag_suffix: prod
# environment: production-fidl

- build-type: staging
tag_suffix: stg
environment: staging-fidl
# - build-type: staging
# tag_suffix: stg
# environment: staging-fidl
uses: ./.github/workflows/release-new-version.yml
with:
tag_suffix: ${{ matrix.tag_suffix }}
Expand Down

0 comments on commit d0b5525

Please sign in to comment.