Skip to content

Commit

Permalink
use autoupdate/release-1.xx-strict branches for strict (#411)
Browse files Browse the repository at this point in the history
* use autoupdate/release-1.xx-strict branches for strict

* adjust CI branches
  • Loading branch information
neoaggelos authored May 8, 2024
1 parent 514e147 commit 532393b
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 26 deletions.
10 changes: 2 additions & 8 deletions .github/ISSUE_TEMPLATE/create_release_branch.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,6 @@ The steps are to be followed in-order, each task must be completed by the person

Thank you, $name

- [ ] **Owner**: Create `release-1.xx-strict` branch from latest `autoupdate/strict`
- `git switch autoupdate/strict`
- `git pull`
- `git checkout -b release-1.xx-strict`
- `git push origin release-1.xx-strict`
- [ ] **Owner**: Create `release-1.xx` branch from latest `main`
- `git switch main`
- `git pull`
Expand Down Expand Up @@ -98,15 +93,14 @@ The steps are to be followed in-order, each task must be completed by the person
- `popd`
- `rm -rf ~/tmp/release-1.xx`
- [ ] **Reviewer**: Ensure `release-1.xx` branch is based on latest changes on `main` at the time of the release cut.
- [ ] **Reviewer**: Ensure `release-1.xx-strict` branch is based on latest changes on `autoupdate/strict` at the time of the release cut.
- [ ] **Owner**: Create PR to initialize `release-1.xx` branch:
- [ ] Update `KUBE_TRACK` to `1.xx` in [/build-scripts/components/kubernetes/version.sh][]
- [ ] Update `master` to `release-1.xx` in [/build-scripts/components/k8s-dqlite/version.sh][]
- [ ] Update `"main"` to `"release-1.xx"` in [/build-scripts/hack/generate-sbom.py][]
- [ ] `git commit -m 'Release 1.xx'`
- [ ] Create PR with the changes and request review from **Reviewer**. Make sure to update the issue `Information` section with a link to the PR.
- [ ] **Reviewer**: Review and merge PR to initialize branch.
- [ ] **Reviewer**: On merge, confirm [Auto-update strict branch] action runs to completion
- [ ] **Reviewer**: On merge, confirm [Auto-update strict branch] action runs to completion and that the `autoupdate/release-1.xx-strict` branch is created.
- [ ] **Owner**: Create launchpad builders for `release-1.xx`
- [ ] Go to [lp:k8s][] and do **Import now** to pick up all latest changes.
- [ ] Under **Branches**, select `release-1.xx`, then **Create snap package**
Expand All @@ -122,7 +116,7 @@ The steps are to be followed in-order, each task must be completed by the person
- [ ] Click **Create snap package** at the bottom of the page.
- [ ] **Owner**: Create launchpad builders for `release-1.xx-strict`
- [ ] Return to [lp:k8s][].
- [ ] Under **Branches**, select `release-1.xx-strict`, then **Create snap package**
- [ ] Under **Branches**, select `autoupdate/release-1.xx-strict`, then **Create snap package**
- [ ] Set **Snap recipe name** to `k8s-snap-1.xx-strict`
- [ ] Set **Owner** to `Canonical Kubernetes (containers)`
- [ ] Set **The project that this Snap is associated with** to `k8s`
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ on:
- main
- autoupdate/strict
- 'release-[0-9]+.[0-9]+'
- 'release-[0-9]+.[0-9]+-strict'

- 'autoupdate/release-[0-9]+.[0-9]+-strict'
pull_request:

jobs:
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,8 @@ on:
- main
- autoupdate/strict
- 'release-[0-9]+.[0-9]+'
- 'release-[0-9]+.[0-9]+-strict'
- 'autoupdate/release-[0-9]+.[0-9]+-strict'
pull_request:
branches:
- main
- 'release-[0-9].[0-9]+'

jobs:
build:
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,8 @@ on:
- main
- autoupdate/strict
- 'release-[0-9]+.[0-9]+'
- 'release-[0-9]+.[0-9]+-strict'
- 'autoupdate/release-[0-9]+.[0-9]+-strict'
pull_request:
branches:
- main
- 'release-[0-9]+.[0-9]+'

jobs:
lint:
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/sbom.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,8 @@ on:
- main
- autoupdate/strict
- 'release-[0-9]+.[0-9]+'
- 'release-[0-9]+.[0-9]+-strict'
- 'autoupdate/release-[0-9]+.[0-9]+-strict'
pull_request:
branches:
- main
- 'release-[0-9]+.[0-9]+'

jobs:
build:
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/strict-integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ on:
- main
- 'release-[0-9]+.[0-9]+'
pull_request:
branches:
- main
- 'release-[0-9]+.[0-9]+'

jobs:
build:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/strict.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
if [[ "${BRANCH}" == "main" ]]; then
echo "strict=autoupdate/strict" >> "$GITHUB_OUTPUT"
elif [[ "${BRANCH}" =~ ^release-[0-9]+\.[0-9]+$ ]]; then
echo "strict=${BRANCH}-strict" >> "$GITHUB_OUTPUT"
echo "strict=autoupdate/${BRANCH}-strict" >> "$GITHUB_OUTPUT"
else
echo "Failed to determine matching strict branch for ${BRANCH}"
echo "strict=" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 532393b

Please sign in to comment.