Skip to content

Commit

Permalink
Add Jib Core and CLI release checklists and update release workflows (#…
Browse files Browse the repository at this point in the history
…3175)

* release templates for Jib Core and CLI
  • Loading branch information
chanseokoh authored Apr 2, 2021
1 parent 053a1d7 commit f49f85e
Show file tree
Hide file tree
Showing 5 changed files with 73 additions and 6 deletions.
18 changes: 18 additions & 0 deletions .github/RELEASE_TEMPLATES/cli_release_checklist.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
title: CLI Release {{ env.RELEASE_NAME }}
labels: release
---
## Requirements
- [ ] ⚠️ Ensure the release process has succeeded before proceeding

## Github
- [ ] Update [CHANGELOG.md]({{ env.CHANGELOG_URL }})
- [ ] Update [README.md]({{ env.README_URL }})
- [ ] Publish [Release]({{ env.RELEASE_DRAFT }})
- [ ] Merge PR ({{ env.RELEASE_PR }})
- [ ] Update the current [milestone](https://github.com/GoogleContainerTools/jib/milestones), roll over any incomplete issues to next milestone.

## Announce
- [ ] Email jib users
- [ ] Post to [gitter](https://gitter.im/google/jib)
- [ ] Mention on all fixed issues that latest release has addressed the issue (usually any closed issues in a [milestone](https://github.com/GoogleContainerTools/jib/milestones))
18 changes: 18 additions & 0 deletions .github/RELEASE_TEMPLATES/core_release_checklist.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
title: Core Release {{ env.RELEASE_NAME }}
labels: release
---
## Requirements
- [ ] ⚠️ Ensure the release process has succeeded before proceeding

## Github
- [ ] Update [CHANGELOG.md]({{ env.CHANGELOG_URL }})
- [ ] Update [README.md]({{ env.README_URL }})
- [ ] Publish [Release]({{ env.RELEASE_DRAFT }})
- [ ] Merge PR ({{ env.RELEASE_PR }})
- [ ] Update the current [milestone](https://github.com/GoogleContainerTools/jib/milestones), roll over any incomplete issues to next milestone.

## Announce
- [ ] Email jib users
- [ ] Post to [gitter](https://gitter.im/google/jib)
- [ ] Mention on all fixed issues that latest release has addressed the issue (usually any closed issues in a [milestone](https://github.com/GoogleContainerTools/jib/milestones))
4 changes: 2 additions & 2 deletions .github/RELEASE_TEMPLATES/plugin_release_checklist.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ labels: release
- [ ] Update [README.md]({{ env.README_URL }})
- [ ] Update [CONTRIBUTING.md](https://github.com/GoogleContainerTools/jib/blob/master/CONTRIBUTING.md)
- [ ] Update [examples](https://github.com/GoogleContainerTools/jib/tree/master/examples)
- [ ] Complete [Release]({{ env.RELEASE_DRAFT }})
- [ ] Publish [Release]({{ env.RELEASE_DRAFT }})
- [ ] Merge PR ({{ env.RELEASE_PR }})
- [ ] Update the current [milestone](https://github.com/GoogleContainerTools/jib/milestones), roll over any incomplete issues to next milestone.

Expand All @@ -27,4 +27,4 @@ labels: release
## Announce
- [ ] Email jib users
- [ ] Post to [gitter](https://gitter.im/google/jib)
- [ ] Menntion on all fixed issues that latest release has addressed the issue (usually any closed issues in a [milestone](https://github.com/GoogleContainerTools/jib/milestones))
- [ ] Mention on all fixed issues that latest release has addressed the issue (usually any closed issues in a [milestone](https://github.com/GoogleContainerTools/jib/milestones))
20 changes: 19 additions & 1 deletion .github/workflows/jib-cli-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jobs:
- name: Create pull request
uses: repo-sync/pull-request@v2
id: create-pr
with:
# Use a personal token to file a PR as a non-bot author to trigger other workflows (e.g., unit tests):
# https://docs.github.com/en/actions/reference/events-that-trigger-workflows#triggering-new-workflows-using-a-personal-access-token;
Expand All @@ -56,13 +57,17 @@ jobs:

- name: Draft GitHub release
uses: actions/create-release@v1
id: create_release
id: create-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v${{ github.event.inputs.release_version }}-cli
release_name: jib-cli v${{ github.event.inputs.release_version }}
draft: true
body: |
### Major Changes
See [CHANGELOG.md](https://github.com/GoogleContainerTools/jib/blob/master/jib-cli/CHANGELOG.md) for more details.
- name: Upload Jib CLI
uses: actions/upload-release-asset@v1
Expand All @@ -83,3 +88,16 @@ jobs:
asset_path: ./jib-cli/build/distributions/zip.sha256
asset_name: jib-jre-${{ github.event.inputs.release_version }}.zip.sha256
asset_content_type: text/plain

- name: Create Jib CLI release checklist issue
uses: JasonEtco/create-an-issue@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RELEASE_NAME: v${{ github.event.inputs.release_version }}-cli
CHANGELOG_URL: https://github.com/GoogleContainerTools/jib/blob/master/jib-cli/CHANGELOG.md
README_URL: https://github.com/GoogleContainerTools/jib/blob/master/jib-cli/README.md
RELEASE_DRAFT: ${{ steps.create-release.outputs.html_url }}
RELEASE_PR: ${{steps.create-pr.outputs.pr_url}}
with:
filename: .github/RELEASE_TEMPLATES/cli_release_checklist.md

19 changes: 16 additions & 3 deletions .github/workflows/prepare-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ jobs:
### Major Changes
See [CHANGELOG.md](https://github.com/GoogleContainerTools/jib/blob/master/jib-${{ github.event.inputs.project }}-plugin/CHANGELOG.md) for more details.
- name: Create Maven/Gradle release checklist issue
uses: JasonEtco/create-an-issue@v2
if: ${{ github.event.inputs.project == 'maven' || github.event.inputs.project == 'gradle' }}
Expand All @@ -103,9 +103,9 @@ jobs:
with:
filename: .github/RELEASE_TEMPLATES/plugin_release_checklist.md


- name: Draft Jib Core GitHub release
- name: Draft Core GitHub release
uses: actions/create-release@v1
id: create-core-release
if: ${{ github.event.inputs.project == 'core' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -117,3 +117,16 @@ jobs:
### Major Changes
See [CHANGELOG.md](https://github.com/GoogleContainerTools/jib/blob/master/jib-core/CHANGELOG.md) for more details.
- name: Create Core release checklist issue
uses: JasonEtco/create-an-issue@v2
if: ${{ github.event.inputs.project == 'core' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RELEASE_NAME: v${{ github.event.inputs.release_version }}-core
CHANGELOG_URL: https://github.com/GoogleContainerTools/jib/blob/master/jib-core/CHANGELOG.md
README_URL: https://github.com/GoogleContainerTools/jib/blob/master/jib-core/README.md
RELEASE_DRAFT: ${{ steps.create-core-release.outputs.html_url }}
RELEASE_PR: ${{steps.create-pr.outputs.pr_url}}
with:
filename: .github/RELEASE_TEMPLATES/core_release_checklist.md

0 comments on commit f49f85e

Please sign in to comment.