11name : Publish All Operators
2- run-name : ${{ format('Publish All Operators{0} {1} Release', ': ', inputs.release_type) }}
2+ run-name : ${{ format('Publish All Operators - {0} Release', inputs.release_type) }}
33on :
44 workflow_dispatch :
55 inputs :
3636 with :
3737 fetch-depth : 0
3838
39- - name : Vulnerability Scan
39+ - name : Scan vulnerabilities
4040 uses :
IABTechLab/uid2-shared-actions/actions/[email protected] 4141 with :
4242 scan_severity : HIGH,CRITICAL
7373 release_type : ${{ inputs.release_type }}
7474 version_number_input : ${{ needs.start.outputs.new_version }}
7575
76- # buildAWS:
77- # name: AWS Private Operator
78- # needs: start
79- # uses: ./.github/workflows/publish-aws-operator-AMI.yaml
80- # with:
81- # release_type: ${{ inputs.release_type }}
82- # version_number_input: ${{ needs.start.outputs.new_version }}
83-
8476 buildGCP :
8577 name : GCP Private Operator
8678 needs : start
@@ -102,25 +94,25 @@ jobs:
10294 runs-on : ubuntu-latest
10395 needs : [buildPublic, buildGCP, buildAzure]
10496 steps :
105- - name : Download Public Artifacts
97+ - name : Download public artifacts
10698 uses : actions/download-artifact@v3
10799 with :
108100 name : image_details
109101 path : ./artifacts/public_operator
110102
111- - name : Download GCP Artifacts
103+ - name : Download GCP artifacts
112104 uses : actions/download-artifact@v3
113105 with :
114106 name : gcp-oidc-deployment-files
115107 path : ./artifacts/gcp_oidc_operator
116108
117- - name : Download Azure Artifacts
109+ - name : Download Azure artifacts
118110 uses : actions/download-artifact@v3
119111 with :
120112 name : azure-cc-deployment-files
121113 path : ./artifacts/azure_cc_operator
122114
123- - name : Delete Public Artifacts
115+ - name : Delete staging artifacts
124116 uses : geekyeggo/delete-artifact@v2
125117 with :
126118 name : |
@@ -133,4 +125,28 @@ jobs:
133125 with :
134126 name : operator_release
135127 path : ./artifacts/
136-
128+
129+ release :
130+ name : Create Release
131+ runs-on : ubuntu-latest
132+ needs : [start, collectAllArtifacts]
133+ steps :
134+ - name : Build changelog
135+ id : changelog
136+ uses : mikepenz/release-changelog-builder-action@v3
137+ with :
138+ toTag : v${{ needs.start.outputs.new_version }}
139+ configurationJson : |
140+ {
141+ "template": "#{{CHANGELOG}}\n## Installation\n```\ndocker pull ${{ needs.start.outputs.new_version }}-<OPERATOR TYPE>\n```\n\n## Image reference to deploy: \n```\n${{ needs.start.outputs.new_version }}-<OPERATOR TYPE>\n```\n\n## TODO\nPlease attach both UID2 and EUID AWS private operator artifacts here.\n```\n\n## Changelog\n#{{UNCATEGORIZED}}",
142+ "pr_template": " - #{{TITLE}} - ( PR: ##{{NUMBER}} )"
143+ }
144+ env :
145+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
146+
147+ - name : Create draft release
148+ uses : softprops/action-gh-release@v1
149+ with :
150+ name : ${{ needs.start.outputs.new_version }}
151+ body : ${{ steps.changelog.outputs.changelog }}
152+ draft : true
0 commit comments