-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Backport] Add global.podSecurityStandards.enforced value for PSS mig…
…ration.
- Loading branch information
Showing
9 changed files
with
128 additions
and
70 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
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
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
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,6 +1,6 @@ | ||
# DO NOT EDIT. Generated with: | ||
# | ||
# devctl@6.9.0 | ||
# devctl@6.18.2 | ||
# | ||
name: Create Release | ||
on: | ||
|
@@ -32,11 +32,10 @@ jobs: | |
steps: | ||
- name: Get version | ||
id: get_version | ||
env: | ||
COMMIT_MESSAGE: ${{ github.event.head_commit.message }} | ||
run: | | ||
title="$(cat <<- 'COMMIT_MESSAGE_END' | head -n 1 - | ||
${{ github.event.head_commit.message }} | ||
COMMIT_MESSAGE_END | ||
)" | ||
title=$(echo -n "${COMMIT_MESSAGE}" | head -1) | ||
# Matches strings like: | ||
# | ||
# - "Release v1.2.3" | ||
|
@@ -53,7 +52,7 @@ jobs: | |
echo "version=${version}" >> $GITHUB_OUTPUT | ||
- name: Checkout code | ||
if: ${{ steps.get_version.outputs.version != '' }} | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
- name: Get project.go path | ||
id: get_project_go_path | ||
if: ${{ steps.get_version.outputs.version != '' }} | ||
|
@@ -66,11 +65,10 @@ jobs: | |
echo "path=${path}" >> $GITHUB_OUTPUT | ||
- name: Check if reference version | ||
id: ref_version | ||
env: | ||
COMMIT_MESSAGE: ${{ github.event.head_commit.message }} | ||
run: | | ||
title="$(cat <<- 'COMMIT_MESSAGE_END' | head -n 1 - | ||
${{ github.event.head_commit.message }} | ||
COMMIT_MESSAGE_END | ||
)" | ||
title=$(echo -n "${COMMIT_MESSAGE}" | head -1) | ||
if echo "${title}" | grep -qE '^release v[0-9]+\.[0-9]+\.[0-9]+([.-][^ .-][^ ]*)?( \(#[0-9]+\))?$' ; then | ||
version=$(echo "${title}" | cut -d ' ' -f 2) | ||
fi | ||
|
@@ -93,7 +91,7 @@ jobs: | |
uses: giantswarm/[email protected] | ||
with: | ||
binary: "architect" | ||
version: "6.11.0" | ||
version: "6.14.1" | ||
- name: Install semver | ||
uses: giantswarm/[email protected] | ||
with: | ||
|
@@ -103,7 +101,7 @@ jobs: | |
tarball_binary_path: "*/src/${binary}" | ||
smoke_test: "${binary} --version" | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
- name: Update project.go | ||
id: update_project_go | ||
env: | ||
|
@@ -143,7 +141,7 @@ jobs: | |
version: "${{ needs.gather_facts.outputs.version }}" | ||
title: "Bump version to ${{ steps.update_project_go.outputs.new_version }}" | ||
run: | | ||
hub pull-request -f -m "${{ env.title }}" -b ${{ env.base }} -h ${{ env.branch }} -r ${{ github.actor }} | ||
gh pr create --title "${{ env.title }}" --body "" --base ${{ env.base }} --head ${{ env.branch }} --reviewer ${{ github.actor }} | ||
create_release: | ||
name: Create release | ||
runs-on: ubuntu-22.04 | ||
|
@@ -154,7 +152,7 @@ jobs: | |
upload_url: ${{ steps.create_gh_release.outputs.upload_url }} | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.sha }} | ||
- name: Ensure correct version in project.go | ||
|
@@ -184,13 +182,12 @@ jobs: | |
git push "${REMOTE_REPO}" --tags | ||
- name: Create release | ||
id: create_gh_release | ||
uses: actions/create-release@v1 | ||
uses: ncipollo/release-action@v1 | ||
env: | ||
GITHUB_TOKEN: "${{ secrets.TAYLORBOT_GITHUB_ACTION }}" | ||
with: | ||
body: ${{ steps.changelog_reader.outputs.changes }} | ||
tag_name: "v${{ needs.gather_facts.outputs.version }}" | ||
release_name: "v${{ needs.gather_facts.outputs.version }}" | ||
tag: "v${{ needs.gather_facts.outputs.version }}" | ||
|
||
create-release-branch: | ||
name: Create release branch | ||
|
@@ -208,7 +205,7 @@ jobs: | |
tarball_binary_path: "*/src/${binary}" | ||
smoke_test: "${binary} --version" | ||
- name: Check out the repository | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 # Clone the whole history, not just the most recent commit. | ||
- name: Fetch all tags and branches | ||
|
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
Oops, something went wrong.