-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #41 from openshift-cherrypick-robot/cherry-pick-40…
…-to-release-0.1 [release-0.1] Automate GitHub Release Draft
- Loading branch information
Showing
3 changed files
with
43 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,10 @@ on: | |
tags: | ||
- 'v*' | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: read | ||
|
||
jobs: | ||
push-images: | ||
name: Build and push images to quay.io/medik8s | ||
|
@@ -25,9 +29,36 @@ jobs: | |
|
||
- name: Build and push CSV 0.0.1 + latest images for PR merges to main | ||
if: ${{ github.ref_type != 'tag' }} | ||
run: export IMAGE_REGISTRY=quay.io/medik8s && make container-build-and-push | ||
run: export IMAGE_REGISTRY=quay.io/medik8s && make container-build-and-push-community | ||
|
||
- name: Build and push versioned CSV and images for tags | ||
if: ${{ github.ref_type == 'tag' }} | ||
# remove leading 'v' from tag! | ||
run: export IMAGE_REGISTRY=quay.io/medik8s && export VERSION=$(echo $GITHUB_REF_NAME | sed 's/v//') && make container-build-and-push | ||
run: export VERSION=$(echo $GITHUB_REF_NAME | sed 's/v//') && make container-build-and-push-community | ||
|
||
- name: Create release with manifests | ||
if: ${{ github.ref_type == 'tag' }} | ||
# https://github.com/marketplace/actions/github-release-create-update-and-upload-assets | ||
uses: meeDamian/[email protected] | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
draft: true | ||
body: | | ||
# Fence Agents Remediation ${{ github.ref_name }} | ||
## Notable Changes | ||
* TODO | ||
## Release Artifacts | ||
### Images | ||
* Operator: quay.io/medik8s/fence-agents-remediation-operator:${{ github.ref_name }} | ||
* Bundle: quay.io/medik8s/fence-agents-remediation-operator-bundle:${{ github.ref_name }} | ||
* Catalog aka Index: quay.io/medik8s/fence-agents-remediation-operator-catalog:${{ github.ref_name }} | ||
### Source code and OLM manifests | ||
Please find the source code and the OLM manifests in the `Assets` section below. | ||
gzip: folders | ||
files: > | ||
Manifests:bundle/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters