Skip to content

Commit b5c1894

Browse files
committed
Merge develop into stable for v2024.04.03 release
2 parents 772a618 + 88f935e commit b5c1894

10 files changed

Lines changed: 315 additions & 266 deletions

File tree

.github/workflows/ci.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ jobs:
1616
outputs:
1717
run-tests: ${{ steps.set-output.outputs.run-tests }}
1818
steps:
19-
- uses: actions/checkout@v3
19+
- uses: actions/checkout@v4
2020
with:
2121
fetch-depth: 0
2222

2323
- name: Get specific changed files
2424
id: changed-files
25-
uses: tj-actions/changed-files@v25
25+
uses: tj-actions/changed-files@v42
2626
with:
2727
separator: ","
2828
files: |
@@ -47,7 +47,7 @@ jobs:
4747
4848
- name: Upload Exit Status
4949
if: always()
50-
uses: actions/upload-artifact@v3
50+
uses: actions/upload-artifact@v4
5151
with:
5252
name: exitstatus
5353
path: exitstatus
@@ -59,7 +59,7 @@ jobs:
5959

6060
if: github.event_name == 'push' || needs.collect-changed-files.outputs.run-tests == 'true'
6161
steps:
62-
- uses: actions/checkout@v3
62+
- uses: actions/checkout@v4
6363

6464
- name: Set up Python 3.9
6565
uses: actions/setup-python@v4
@@ -84,7 +84,7 @@ jobs:
8484
8585
- name: Upload Exit Status
8686
if: always()
87-
uses: actions/upload-artifact@v3
87+
uses: actions/upload-artifact@v4
8888
with:
8989
name: exitstatus
9090
path: exitstatus
@@ -96,7 +96,7 @@ jobs:
9696
container: koalaman/shellcheck-alpine:v0.7.0
9797
if: github.event_name == 'push' || needs.collect-changed-files.outputs.run-tests == 'true'
9898
steps:
99-
- uses: actions/checkout@v3
99+
- uses: actions/checkout@v4
100100
- name: ShellCheck
101101
run: |
102102
shellcheck -s sh -f tty bootstrap-salt.sh
@@ -109,7 +109,7 @@ jobs:
109109
110110
- name: Upload Exit Status
111111
if: always()
112-
uses: actions/upload-artifact@v3
112+
uses: actions/upload-artifact@v4
113113
with:
114114
name: exitstatus
115115
path: exitstatus
@@ -603,14 +603,14 @@ jobs:
603603

604604
- name: Download Exit Status Files
605605
if: always()
606-
uses: actions/download-artifact@v3
606+
uses: actions/download-artifact@v4
607607
with:
608608
name: exitstatus
609609
path: exitstatus
610610

611611
- name: Delete Exit Status Artifacts
612612
if: always()
613-
uses: geekyeggo/delete-artifact@v1
613+
uses: geekyeggo/delete-artifact@v4
614614
with:
615615
name: exitstatus
616616
failOnError: false

.github/workflows/release.yml

Lines changed: 0 additions & 92 deletions
Original file line numberDiff line numberDiff line change
@@ -444,95 +444,3 @@ jobs:
444444
atomic: true
445445
branch: develop
446446
repository: ${{ github.repository }}
447-
448-
449-
salt:
450-
name: Update Release on Salt Repo
451-
runs-on:
452-
- self-hosted
453-
- linux
454-
- repo-release
455-
needs:
456-
- update-develop-checksums
457-
environment: release
458-
permissions:
459-
contents: write # For action peter-evans/create-pull-request
460-
pull-requests: write # For action peter-evans/create-pull-request
461-
462-
steps:
463-
- uses: actions/checkout@v3
464-
with:
465-
ref: stable
466-
repository: ${{ github.repository }}
467-
468-
- name: Get bootstrap version
469-
run: |
470-
echo "BS_VERSION=$(sh bootstrap-salt.sh -v | awk '{ print $4 }')" >> "$GITHUB_ENV"
471-
472-
- uses: actions/checkout@v3
473-
with:
474-
repository: saltstack/salt
475-
ref: master
476-
path: salt-checkout
477-
token: ${{ secrets.SALT_REPO_WRITE_TOKEN }}
478-
479-
- name: Setup GnuPG
480-
run: |
481-
sudo install -d -m 0700 -o "$(id -u)" -g "$(id -g)" /run/gpg
482-
GNUPGHOME="$(mktemp -d -p /run/gpg)"
483-
echo "GNUPGHOME=${GNUPGHOME}" >> "$GITHUB_ENV"
484-
cat <<EOF > "${GNUPGHOME}/gpg.conf"
485-
batch
486-
no-tty
487-
pinentry-mode loopback
488-
EOF
489-
490-
- name: Get Secrets
491-
id: get-secrets
492-
env:
493-
SECRETS_KEY: ${{ secrets.SECRETS_KEY }}
494-
run: |
495-
SECRETS_KEY_FILE=$(mktemp /tmp/output.XXXXXXXXXX)
496-
echo "$SECRETS_KEY" > "$SECRETS_KEY_FILE"
497-
aws --region us-west-2 secretsmanager get-secret-value --secret-id /cmbu-saltstack/signing/repo-signing-keys-sha256-2023 \
498-
--query SecretString --output text | jq .default_key -r | base64 -d \
499-
| gpg --passphrase-file "${SECRETS_KEY_FILE}" -d - \
500-
| gpg --import -
501-
sync
502-
aws --region us-west-2 secretsmanager get-secret-value --secret-id /cmbu-saltstack/signing/repo-signing-keys-sha256-2023 \
503-
--query SecretString --output text| jq .default_passphrase -r | base64 -d \
504-
| gpg --passphrase-file "${SECRETS_KEY_FILE}" -o "${GNUPGHOME}/passphrase" -d -
505-
sync
506-
rm "$SECRETS_KEY_FILE"
507-
echo "passphrase-file ${GNUPGHOME}/passphrase" >> "${GNUPGHOME}/gpg.conf"
508-
509-
- name: Configure Git
510-
shell: bash
511-
run: |
512-
git config --global --add safe.directory "$(pwd)"
513-
git config --global user.name "Salt Project Packaging"
514-
git config --global user.email saltproject-packaging@vmware.com
515-
git config --global user.signingkey 64CBBC8173D76B3F
516-
git config --global commit.gpgsign true
517-
518-
- name: Update bootstrap script on Salt
519-
run: |
520-
cp bootstrap-salt.sh salt-checkout/salt/cloud/deploy/bootstrap-salt.sh
521-
522-
- name: Commit Changes
523-
working-directory: salt-checkout/
524-
run: |
525-
git commit -am "Update the bootstrap script to v${{ env.BS_VERSION }}"
526-
527-
- name: Create Pull Request Against Develop
528-
uses: peter-evans/create-pull-request@v5
529-
with:
530-
title: "Update the bootstrap script to v${{ env.BS_VERSION }}"
531-
path: salt-checkout
532-
base: master
533-
token: ${{ secrets.SALT_REPO_WRITE_TOKEN }}
534-
author: "Salt Project Packaging <saltproject-packaging@vmware.com>"
535-
committer: "Salt Project Packaging <saltproject-packaging@vmware.com>"
536-
commit-message: Update the bootstrap script to v${{ env.BS_VERSION }}
537-
signoff: true
538-
delete-branch: true

.github/workflows/templates/ci-tail.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111

1212
- name: Download Exit Status Files
1313
if: always()
14-
uses: actions/download-artifact@v3
14+
uses: actions/download-artifact@v4
1515
with:
1616
name: exitstatus
1717
path: exitstatus
1818

1919
- name: Delete Exit Status Artifacts
2020
if: always()
21-
uses: geekyeggo/delete-artifact@v1
21+
uses: geekyeggo/delete-artifact@v4
2222
with:
2323
name: exitstatus
2424
failOnError: false

.github/workflows/templates/ci.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ jobs:
1616
outputs:
1717
run-tests: ${{ steps.set-output.outputs.run-tests }}
1818
steps:
19-
- uses: actions/checkout@v3
19+
- uses: actions/checkout@v4
2020
with:
2121
fetch-depth: 0
2222

2323
- name: Get specific changed files
2424
id: changed-files
25-
uses: tj-actions/changed-files@v25
25+
uses: tj-actions/changed-files@v42
2626
with:
2727
separator: ","
2828
files: |
@@ -47,7 +47,7 @@ jobs:
4747
4848
- name: Upload Exit Status
4949
if: always()
50-
uses: actions/upload-artifact@v3
50+
uses: actions/upload-artifact@v4
5151
with:
5252
name: exitstatus
5353
path: exitstatus
@@ -59,7 +59,7 @@ jobs:
5959

6060
if: github.event_name == 'push' || needs.collect-changed-files.outputs.run-tests == 'true'
6161
steps:
62-
- uses: actions/checkout@v3
62+
- uses: actions/checkout@v4
6363

6464
- name: Set up Python 3.9
6565
uses: actions/setup-python@v4
@@ -84,7 +84,7 @@ jobs:
8484
8585
- name: Upload Exit Status
8686
if: always()
87-
uses: actions/upload-artifact@v3
87+
uses: actions/upload-artifact@v4
8888
with:
8989
name: exitstatus
9090
path: exitstatus
@@ -96,7 +96,7 @@ jobs:
9696
container: koalaman/shellcheck-alpine:v0.7.0
9797
if: github.event_name == 'push' || needs.collect-changed-files.outputs.run-tests == 'true'
9898
steps:
99-
- uses: actions/checkout@v3
99+
- uses: actions/checkout@v4
100100
- name: ShellCheck
101101
run: |
102102
shellcheck -s sh -f tty bootstrap-salt.sh
@@ -109,7 +109,7 @@ jobs:
109109
110110
- name: Upload Exit Status
111111
if: always()
112-
uses: actions/upload-artifact@v3
112+
uses: actions/upload-artifact@v4
113113
with:
114114
name: exitstatus
115115
path: exitstatus

CHANGELOG.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
# v2024.04.03
2+
3+
## What's Changed
4+
5+
- Remove automated PR against salt repo at release by @ScriptAutomate in https://github.com/saltstack/salt-bootstrap/pull/1984
6+
- Update actions by @twangboy in https://github.com/saltstack/salt-bootstrap/pull/1985
7+
- Fix DEBIAN Keyring url by @Dudek-AMS in https://github.com/saltstack/salt-bootstrap/pull/1983
8+
- Fix script to support installing RC on Windows by @twangboy in https://github.com/saltstack/salt-bootstrap/pull/1993
9+
10+
## New Contributors
11+
12+
- @Dudek-AMS made their first contribution in https://github.com/saltstack/salt-bootstrap/pull/1983
13+
14+
**Full Changelog**: https://github.com/saltstack/salt-bootstrap/compare/v2024.01.04...v2024.04.03
15+
116
# v2024.01.04
217

318
## What's Changed
@@ -565,7 +580,7 @@
565580
- add apt-transport-https for ubuntu. (epcim) #896
566581
- Fix expanding shell script position parameters with nounset enabled. (vutny) #895
567582
- RFC: Add tests for bootstrap-salt.ps1. (themalkolm) #893
568-
- Keep original name of salt executable executable. (themalkolm) #857
583+
- Keep original name of salt executable. (themalkolm) #857
569584

570585
# v2016.06.27:
571586

README.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ sum** of the downloaded ``bootstrap-salt.sh`` file.
3232

3333
The SHA256 sum of the ``bootstrap-salt.sh`` file, per release, is:
3434

35+
- 2024.01.04: ``cebcbc67895e238d1cf0024922a7fe5c772b9aaba346490c8fa6193bb0d993d4``
3536
- 2023.11.16: ``3757ed82161113fed4c711fd7332e922265eeeb54e6e4f657a08ea82d57cc3a2``
3637
- 2023.11.07: ``91f8a3bfb8b14476f7793c7f20cec7bfc638c10c073786f9a8904a858a929784``
3738
- 2023.08.03: ``963e559bdb85adecfbbec2c3b81190392bc59b24992e4491e919cd748eeafcb8``

RELEASE.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,10 @@
33
- See if there are any PRs worth squeezing into release.
44
- Go through the changes since last release, add them to changelog.
55
- Add any new authors to the AUTHORS file.
6-
- If there's a new Salt release(major), update the script to add support for it.
6+
- If there's a new Salt release (major), update the script to add support for it.
77
- Bump version for release.
88
- Open PR against develop with these changes.
9-
- Once the above PR is merged, open a PR against stable with the changes from develop.
10-
- Once the above PR is merged, wait until an automatic PR is opened against stable which updates the checksums.
11-
- Once the above PR is merged, tag the release `v{version-here}` and push the tag.
12-
- Wait until an automatic PR is opened against the develop branch updating the checksums in `README.rst`. Merge it.
13-
- Check that an automated PR was opened against the salt repo updating the bootstrap script, located in `salt/cloud/deploy/bootstrap-salt.sh`
14-
9+
- Once the above PR is merged, go to [Cut Release](https://github.com/saltstack/salt-bootstrap/actions/workflows/release.yml) and `Run workflow` against `develop` branch
10+
- Open a new PR against the branch of the oldest supported version of [the salt repo](https://github.com/saltstack/salt) (ex. `3006.x`), and replace `salt/cloud/deploy/bootstrap-salt.sh` with the latest `bootstrap-salt.sh` file
11+
- When that PR is merged into [the salt repo](https://github.com/saltstack/salt), merge-forwards into the latest branches and `master` will ensure that the latest bootstrap script is available
1512
- Victory!

0 commit comments

Comments
 (0)