forked from saltstack/salt
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request saltstack#63930 from s0undt3ch/hotfix/merge-forward
Merge 3006.x into master
- Loading branch information
Showing
106 changed files
with
3,697 additions
and
1,152 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,14 +32,12 @@ runs: | |
- name: Configure Git | ||
shell: bash | ||
run: | | ||
git config --global user.name "Salt Project Packaging" | ||
git config --global user.email [email protected] | ||
tools pkg configure-git | ||
- name: Apply Release Patch | ||
shell: bash | ||
run: | | ||
git am --committer-date-is-author-date salt-${{ inputs.salt-version }}.patch | ||
rm salt-${{ inputs.salt-version }}.patch | ||
tools pkg apply-release-patch salt-${{ inputs.salt-version }}.patch --delete | ||
- name: Create Source Tarball | ||
shell: bash | ||
|
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 |
---|---|---|
|
@@ -27,7 +27,12 @@ jobs: | |
image: ghcr.io/saltstack/salt-ci-containers/packaging:debian-11 | ||
|
||
steps: | ||
# Checkout here so we can easily use custom actions | ||
- uses: actions/checkout@v3 | ||
|
||
# Checkout here for the build process | ||
- name: Checkout in build directory | ||
uses: actions/checkout@v3 | ||
with: | ||
path: | ||
pkgs/checkout/ | ||
|
@@ -38,38 +43,38 @@ jobs: | |
name: salt-${{ inputs.salt-version }}-onedir-linux-${{ matrix.arch }}.tar.xz | ||
path: pkgs/checkout/artifacts/ | ||
|
||
- name: Download System Dependencies | ||
run: | | ||
apt update | ||
apt install -y python3 python3-venv python3-pip build-essential devscripts debhelper bash-completion git | ||
- name: Download Release Patch | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: salt-${{ inputs.salt-version }}.patch | ||
path: pkgs/checkout/ | ||
|
||
- name: Setup Python Tools Scripts | ||
uses: ./.github/actions/setup-python-tools-scripts | ||
with: | ||
cwd: pkgs/checkout/ | ||
|
||
- name: Setup Salt Version | ||
id: setup-salt-version | ||
uses: ./.github/actions/setup-salt-version | ||
with: | ||
salt-version: "${{ inputs.salt-version }}" | ||
cwd: pkgs/checkout/ | ||
|
||
- name: Configure Git | ||
shell: bash | ||
working-directory: pkgs/checkout/ | ||
run: | | ||
git config --global user.name "Salt Project Packaging" | ||
git config --global user.email [email protected] | ||
tools pkg configure-git | ||
- name: Apply Release Patch | ||
shell: bash | ||
- name: Apply release patch | ||
working-directory: pkgs/checkout/ | ||
run: | | ||
cd pkgs/checkout/ | ||
git am --committer-date-is-author-date salt-${{ inputs.salt-version }}.patch | ||
rm salt-${{ inputs.salt-version }}.patch | ||
tools pkg apply-release-patch salt-${{ inputs.salt-version }}.patch --delete | ||
- name: Build Deb | ||
env: | ||
SALT_ONEDIR_ARCHIVE: "${{ github.workspace }}/pkgs/checkout/artifacts/salt-${{ inputs.salt-version }}-onedir-linux-${{ matrix.arch }}.tar.xz" | ||
working-directory: pkgs/checkout/ | ||
run: | | ||
cd pkgs/checkout/ | ||
echo "${{ inputs.salt-version }}" > salt/_version.txt | ||
ln -sf pkg/debian/ . | ||
debuild -e SALT_ONEDIR_ARCHIVE -uc -us | ||
tools pkg build deb --onedir salt-${{ inputs.salt-version }}-onedir-linux-${{ matrix.arch }}.tar.xz | ||
- name: Cleanup | ||
run: | | ||
|
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 |
---|---|---|
|
@@ -39,19 +39,6 @@ jobs: | |
with: | ||
name: salt-${{ inputs.salt-version }}.patch | ||
|
||
- name: Configure Git | ||
shell: bash | ||
run: | | ||
git config --global user.name "Salt Project Packaging" | ||
git config --global user.email [email protected] | ||
git config --global --add safe.directory "$(pwd)" | ||
- name: Apply Release Patch | ||
shell: bash | ||
run: | | ||
git am --committer-date-is-author-date salt-${{ inputs.salt-version }}.patch | ||
rm salt-${{ inputs.salt-version }}.patch | ||
- name: Get Python Version | ||
id: get-python-version | ||
uses: ./.github/actions/get-python-version | ||
|
@@ -62,6 +49,14 @@ jobs: | |
id: python-tools-scripts | ||
uses: ./.github/actions/setup-python-tools-scripts | ||
|
||
- name: Configure Git | ||
run: | | ||
tools pkg configure-git | ||
- name: Apply release patch | ||
run: | | ||
tools pkg apply-release-patch salt-${{ inputs.salt-version }}.patch --delete | ||
- name: Cache Python Tools Docs Virtualenv | ||
id: tools-venvs-dependencies-cache | ||
uses: actions/cache@v3 | ||
|
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 |
---|---|---|
|
@@ -32,11 +32,6 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Download System Dependencies | ||
run: | | ||
yum -y update | ||
yum -y install python3 python3-pip openssl git rpmdevtools rpmlint systemd-units libxcrypt-compat git | ||
- name: Download Onedir Tarball as an Artifact | ||
uses: actions/download-artifact@v3 | ||
with: | ||
|
@@ -48,25 +43,26 @@ jobs: | |
with: | ||
name: salt-${{ inputs.salt-version }}.patch | ||
|
||
- name: Setup Python Tools Scripts | ||
uses: ./.github/actions/setup-python-tools-scripts | ||
|
||
- name: Setup Salt Version | ||
id: setup-salt-version | ||
uses: ./.github/actions/setup-salt-version | ||
with: | ||
salt-version: "${{ inputs.salt-version }}" | ||
|
||
- name: Configure Git | ||
shell: bash | ||
run: | | ||
git config --global user.name "Salt Project Packaging" | ||
git config --global user.email [email protected] | ||
git config --global --add safe.directory "$(pwd)" | ||
tools pkg configure-git | ||
- name: Apply Release Patch | ||
shell: bash | ||
- name: Apply release patch | ||
run: | | ||
git am --committer-date-is-author-date salt-${{ inputs.salt-version }}.patch | ||
rm salt-${{ inputs.salt-version }}.patch | ||
tools pkg apply-release-patch salt-${{ inputs.salt-version }}.patch --delete | ||
- name: Build RPM | ||
env: | ||
SALT_ONEDIR_ARCHIVE: "${{ github.workspace }}/artifacts/salt-${{ inputs.salt-version }}-onedir-linux-${{ matrix.arch }}.tar.xz" | ||
run: | | ||
echo "${{ inputs.salt-version }}" > salt/_version.txt | ||
rpmbuild -bb --define="_salt_src $(pwd)" "$(pwd)/pkg/rpm/salt.spec" | ||
tools pkg build rpm --onedir salt-${{ inputs.salt-version }}-onedir-linux-${{ matrix.arch }}.tar.xz | ||
- name: Upload RPMs | ||
uses: actions/upload-artifact@v3 | ||
|
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
Oops, something went wrong.