forked from kubernetes-sigs/cri-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Sascha Grunert <[email protected]>
- Loading branch information
1 parent
d5ce69e
commit 4e03be7
Showing
6 changed files
with
88 additions
and
10 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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: release | ||
on: | ||
push: | ||
tags: | ||
- "*" | ||
jobs: | ||
publish: | ||
name: release | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/setup-go@v2 | ||
with: | ||
go-version: '1.17' | ||
- name: Set env | ||
shell: bash | ||
run: | | ||
echo "GOPATH=${{ github.workspace }}" >> $GITHUB_ENV | ||
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH | ||
- uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/go/pkg/mod | ||
~/.cache/go-build | ||
key: go-release-${{ hashFiles('**/go.sum') }} | ||
restore-keys: go-release- | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
path: src/github.com/kubernetes-sigs/cri-tools | ||
- run: | | ||
make release-notes | ||
make release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | ||
working-directory: src/github.com/kubernetes-sigs/cri-tools | ||
- uses: ncipollo/release-action@v1 | ||
with: | ||
allowUpdates: true | ||
artifacts: src/github.com/kubernetes-sigs/cri-tools/_output/releases/* | ||
bodyFile: src/github.com/kubernetes-sigs/cri-tools/release-notes.md | ||
token: ${{ secrets.GH_TOKEN }} | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: release-notes | ||
path: src/github.com/kubernetes-sigs/cri-tools/release-notes.md | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: build-artifacts | ||
path: src/github.com/kubernetes-sigs/cri-tools/_output |
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 |
---|---|---|
|
@@ -32,3 +32,4 @@ Session.vim | |
.netrwhist | ||
|
||
/build | ||
release-notes.md |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
# Release Process | ||
|
||
The Kubernetes cri-tools Project is released on an as-needed basis. The process is as follows: | ||
The Kubernetes cri-tools Project is released for every Kubernetes release. The | ||
process is as follows: | ||
|
||
1. An issue is proposing a new release with a changelog since the last release | ||
1. All [OWNERS](OWNERS) must LGTM this release | ||
1. An OWNER runs `git tag -s $VERSION` and inserts the changelog and pushes the tag with `git push $VERSION` | ||
1. The release issue is closed | ||
1. An OWNER runs `git tag -m $VERSION -s $VERSION` and pushes the tag with `git push $VERSION`, where `$VERSION` follows the Kubernetes minor version. | ||
1. An announcement email is sent to `[email protected]` with the subject `[ANNOUNCE] cri-tools $VERSION is released` |
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Copyright 2021 The Kubernetes Authors. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
set -euo pipefail | ||
|
||
go install k8s.io/release/cmd/release-notes@latest | ||
|
||
release-notes \ | ||
--discover minor-to-minor \ | ||
--org kubernetes-sigs \ | ||
--repo cri-tools \ | ||
--required-author "" \ | ||
--output release-notes.md |
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