|
21 | 21 | schedule: |
22 | 22 | - cron: "0 0 * * *" |
23 | 23 |
|
24 | | -env: |
25 | | - RELEASE_TYPE: ${{ inputs.release_type || (github.event_name == 'schedule' && 'patch') }} |
26 | | - VULNERABILITY_SEVERITY: ${{ env.VULNERABILITY_SEVERITY || (github.event_name == 'schedule' && 'CRITICAL,HIGH') }} |
27 | | - |
28 | 24 | jobs: |
29 | 25 | start: |
30 | 26 | name: Start Operator Build |
31 | 27 | runs-on: ubuntu-latest |
32 | 28 | outputs: |
33 | 29 | new_version: ${{ steps.version.outputs.new_version }} |
34 | 30 | commit_sha: ${{ steps.commit-and-tag.outputs.commit_sha }} |
| 31 | + env: |
| 32 | + RELEASE_TYPE: ${{ inputs.release_type || (github.event_name == 'schedule' && 'patch') }} |
| 33 | + VULNERABILITY_SEVERITY: ${{ env.VULNERABILITY_SEVERITY || (github.event_name == 'schedule' && 'CRITICAL,HIGH') }} |
35 | 34 | steps: |
| 35 | + - name: Set Environment Variables |
| 36 | + id: set-env |
| 37 | + run: | |
| 38 | + echo "release_type=${{ inputs.release_type || (github.event_name == 'schedule' && 'patch') }}" >> $GITHUB_ENV |
| 39 | + echo "vulnerability_severity=${{ inputs.vulnerability_severity || (github.event_name == 'schedule' && 'CRITICAL,HIGH') }}" >> $GITHUB_ENV |
| 40 | + echo "release_type=${RELEASE_TYPE}" >> $GITHUB_OUTPUT |
| 41 | + echo "vulnerability_severity=${VULNERABILITY_SEVERITY}" >> $GITHUB_OUTPUT |
36 | 42 | - name: Approve Major release |
37 | 43 | if: env.RELEASE_TYPE == 'Major' |
38 | 44 | uses: trstringer/manual-approval@v1 |
@@ -93,39 +99,39 @@ jobs: |
93 | 99 | needs: start |
94 | 100 | uses: ./.github/workflows/publish-public-operator-docker-image.yaml |
95 | 101 | with: |
96 | | - release_type: ${{ env.RELEASE_TYPE }} |
| 102 | + release_type: ${{ needs.start.outputs.release_type }} |
97 | 103 | version_number_input: ${{ needs.start.outputs.new_version }} |
98 | | - vulnerability_severity: ${{ env.VULNERABILITY_SEVERITY }} |
| 104 | + vulnerability_severity: ${{ needs.start.outputs.vulnerability_severity }} |
99 | 105 | secrets: inherit |
100 | 106 |
|
101 | 107 | buildGCP: |
102 | 108 | name: GCP Private Operator |
103 | 109 | needs: start |
104 | 110 | uses: ./.github/workflows/publish-gcp-oidc-enclave-docker.yaml |
105 | 111 | with: |
106 | | - release_type: ${{ env.RELEASE_TYPE }} |
| 112 | + release_type: ${{ needs.start.outputs.release_type }} |
107 | 113 | version_number_input: ${{ needs.start.outputs.new_version }} |
108 | 114 | commit_sha: ${{ needs.start.outputs.commit_sha }} |
109 | | - vulnerability_severity: ${{ env.VULNERABILITY_SEVERITY }} |
| 115 | + vulnerability_severity: ${{ needs.start.outputs.vulnerability_severity }} |
110 | 116 | secrets: inherit |
111 | 117 |
|
112 | 118 | buildAzure: |
113 | 119 | name: Azure Private Operator |
114 | 120 | needs: start |
115 | 121 | uses: ./.github/workflows/publish-azure-cc-enclave-docker.yaml |
116 | 122 | with: |
117 | | - release_type: ${{ env.RELEASE_TYPE }} |
| 123 | + release_type: ${{ needs.start.outputs.release_type }} |
118 | 124 | version_number_input: ${{ needs.start.outputs.new_version }} |
119 | 125 | commit_sha: ${{ needs.start.outputs.commit_sha }} |
120 | | - vulnerability_severity: ${{ env.VULNERABILITY_SEVERITY }} |
| 126 | + vulnerability_severity: ${{ needs.start.outputs.vulnerability_severity }} |
121 | 127 | secrets: inherit |
122 | 128 |
|
123 | 129 | buildAWS: |
124 | 130 | name: AWS Private Operator EIF |
125 | 131 | needs: start |
126 | 132 | uses: ./.github/workflows/publish-aws-nitro-eif.yaml |
127 | 133 | with: |
128 | | - release_type: ${{ env.RELEASE_TYPE }} |
| 134 | + release_type: ${{ needs.start.outputs.release_type }} |
129 | 135 | version_number_input: ${{ needs.start.outputs.new_version }} |
130 | 136 | commit_sha: ${{ needs.start.outputs.commit_sha }} |
131 | 137 | secrets: inherit |
|
0 commit comments