Skip to content

Commit

Permalink
Try outputs in post_rollouts
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekRoberts committed Apr 5, 2024
1 parent 47e7d50 commit 76366a5
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/pr-open.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 10
outputs:
backend: ${{ steps.trigger.outputs.backend }}
database: ${{ steps.trigger.outputs.database }}
frontend: ${{ steps.trigger.outputs.frontend }}
backend: ${{ steps.deploys.outputs.backend }}
database: ${{ steps.deploys.outputs.database }}
frontend: ${{ steps.deploys.outputs.frontend }}
strategy:
matrix:
name: [ backend, database, frontend ]
name: [backend, database, frontend]
include:
- name: backend
file: templates/backend.yml
Expand All @@ -32,11 +32,10 @@ jobs:
oc_version: 4.13
overwrite: true
parameters: -p MIN_REPLICAS=1 -p MAX_REPLICAS=2
post_rollout: |
oc create job "frontend-$(date +%s)" --from=cronjob/${{ github.event.repository.name }}-${{ github.event.number }}-cronjob
steps:
- uses: actions/checkout@v4
- id: deploys
- name: Deploys
id: deploys
uses: ./
with:
file: ${{ matrix.file }}
Expand All @@ -46,13 +45,12 @@ jobs:
oc_token: ${{ secrets.OC_TOKEN }}
oc_version: ${{ matrix.oc_version }}
overwrite: ${{ matrix.overwrite }}
parameters: -p ZONE=${{ github.event.number }} -p NAME=${{ github.event.repository.name }}
parameters:
-p ZONE=${{ github.event.number }} -p NAME=${{ github.event.repository.name }}
${{ matrix.parameters }}
penetration_test: ${{ matrix.penetration_test }}
post_rollout: ${{ matrix.post_rollout }}
post_rollout: echo "${{ matrix.name }}=true" >> $GITHUB_OUTPUT
verification_path: ${{ matrix.verification_path }}
- id: trigger
run: echo "${{ matrix.name }}=${{ steps.deploys.outputs.triggered }}" >> $GITHUB_OUTPUT

results:
name: Results
Expand Down

0 comments on commit 76366a5

Please sign in to comment.