Skip to content

Commit 8c6bcea

Browse files
authored
Merge pull request #20 from dmurphy18/cleanup_release
Clean up files after initial release and re-enable use of ssh and key
2 parents 6327385 + 89003e6 commit 8c6bcea

File tree

4 files changed

+31
-122
lines changed

4 files changed

+31
-122
lines changed

.github/workflows/release.yml

Lines changed: 25 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ jobs:
9999
- name: Push Changes
100100
uses: ad-m/github-push-action@b87afee92c6e70ea888be6203a3e9426fda49839
101101
with:
102-
## ssh: true
102+
ssh: true
103103
atomic: true
104104
branch: main
105105
repository: ${{ github.repository }}
@@ -113,69 +113,6 @@ jobs:
113113
.cut_release_changes
114114
include-hidden-files: true
115115

116-
## merge-develop-into-stable:
117-
## name: Merge develop into stable
118-
## runs-on: ubuntu-latest
119-
## needs:
120-
## - update-main
121-
## environment: release
122-
## permissions:
123-
## contents: write # To be able to publish the release
124-
## steps:
125-
## - uses: actions/checkout@v4
126-
## with:
127-
## ref: stable
128-
## repository: ${{ github.repository }}
129-
## ssh-key: ${{ secrets.SALT_VMTOOLS_RELEASE_KEY }}
130-
## fetch-depth: 0
131-
132-
## - name: Configure Git
133-
## shell: bash
134-
## run: |
135-
## git config --global --add safe.directory "$(pwd)"
136-
## git config --global user.name "Salt Project Packaging"
137-
## git config --global user.email [email protected]
138-
## git config --global commit.gpgsign false
139-
140-
## - name: Download Release Details
141-
## uses: actions/download-artifact@v4
142-
## with:
143-
## name: release-details
144-
145-
## - name: Merge develop into stable
146-
## run: |
147-
## git merge --no-ff -m "Merge develop into stable for ${{ needs.update-develop.outputs.release-version }} release" origin/develop || touch .git-conflicts
148-
## if [ -f .git-conflicts ]
149-
## then
150-
## git diff
151-
## for f in $(git status | grep 'both modified' | awk '{ print $3 }')
152-
## do
153-
## git checkout --theirs "$f"
154-
## pre-commit run -av --files "$f"
155-
## git add "$f"
156-
## done
157-
## git commit -a -m "Merge develop into stable for ${{ needs.update-develop.outputs.release-version }} release(auto resolving conflicts to the develop version)"
158-
## fi
159-
160-
## - name: Tag The ${{ needs.update-develop.outputs.release-version }} Release
161-
## run: |
162-
## git tag --no-sign -m "Release ${{ needs.update-develop.outputs.release-version }}" -a ${{ needs.update-develop.outputs.release-version }}
163-
164-
## ## - name: Update svtminion.sh sha256sum's
165-
## ## run: |
166-
## ## sha256sum svtminion.sh | awk '{ print $1 }' > svtminion.sh.sha256
167-
## ## sha256sum svtminion.ps1 | awk '{ print $1 }' > svtminion.ps1.sha256
168-
## ## git commit -a -m "Update sha256 checksums" || git commit -a -m "Update sha256 checksums"
169-
170-
## ## - name: Push Changes
171-
## ## uses: ad-m/github-push-action@b87afee92c6e70ea888be6203a3e9426fda49839
172-
## ## with:
173-
## ## ssh: true
174-
## ## tags: true
175-
## ## atomic: true
176-
## ## branch: stable
177-
## ## repository: ${{ github.repository }}
178-
179116
publish-release:
180117
name: Create GitHub Release
181118
runs-on: ubuntu-latest
@@ -189,7 +126,7 @@ jobs:
189126
with:
190127
ref: main
191128
repository: ${{ github.repository }}
192-
## ssh-key: ${{ secrets.SALT_VMTOOLS_RELEASE_KEY }}
129+
ssh-key: ${{ secrets.SALT_VMTOOLS_RELEASE_KEY }}
193130

194131
- name: Configure Git
195132
shell: bash
@@ -209,9 +146,26 @@ jobs:
209146
CUT_RELEASE_VERSION=$(cat .cut_release_version)
210147
echo "CUT_RELEASE_VERSION=${CUT_RELEASE_VERSION}" >> "$GITHUB_ENV"
211148
149+
- name: Update linux/svtminion.sh sha256sum's
150+
run: |
151+
sha256sum linux/svtminion.sh | awk '{ print $1 }' > svtminion.sh.sha256
152+
sha256sum windows/svtminion.ps1 | awk '{ print $1 }' > svtminion.ps1.sha256
153+
ls -alh
154+
git add svtminion.sh.sha256
155+
git add svtminion.ps1.sha256
156+
git commit -am "Update sha256 checksums" || git commit -am "Update sha256 checksums"
157+
158+
- name: Push Changes
159+
uses: ad-m/github-push-action@b87afee92c6e70ea888be6203a3e9426fda49839
160+
with:
161+
ssh: true
162+
tags: true
163+
atomic: true
164+
branch: main
165+
repository: ${{ github.repository }}
166+
212167
- name: Tag The ${{ needs.update-main.outputs.release-version }} Release
213168
run: |
214-
## DGM git tag --no-sign -m "Release ${{ needs.update-main.outputs.release-version }}" -a ${{ needs.update-main.outputs.release-version }}
215169
git tag -f --no-sign -m "Release ${{ needs.update-main.outputs.release-version }}" -a ${{ needs.update-main.outputs.release-version }}
216170
217171
- name: Create Github Release
@@ -227,6 +181,8 @@ jobs:
227181
files: |
228182
linux/svtminion.sh
229183
windows/svtminion.ps1
184+
svtminion.sh.sha256
185+
svtminion.ps1.sha256
230186
LICENSE
231187
232188
- name: Delete Release Details Artifact
@@ -250,19 +206,18 @@ jobs:
250206
with:
251207
ref: main
252208
repository: ${{ github.repository }}
253-
## ssh-key: ${{ secrets.SALT_VMTOOLS_RELEASE_KEY }}
209+
ssh-key: ${{ secrets.SALT_VMTOOLS_RELEASE_KEY }}
254210

255211
- name: Get linux/svtminion.sh on main branch sha256sum
256212
run: |
257213
echo "SH=$(sha256sum linux/svtminion.sh | awk '{ print $1 }')" >> "$GITHUB_ENV"
258214
echo "VMTS_VERSION=$(bash linux/svtminion.sh --version | awk '{ print $1 }')" >> "$GITHUB_ENV"
259-
echo "DGM SH ,${SH}, and VMTS_VERSION ,${VMTS_VERSION},"
260215
261216
- uses: actions/checkout@v4
262217
with:
263218
ref: main
264219
repository: ${{ github.repository }}
265-
## ssh-key: ${{ secrets.SALT_VMTOOLS_RELEASE_KEY }}
220+
ssh-key: ${{ secrets.SALT_VMTOOLS_RELEASE_KEY }}
266221

267222
- name: Configure Git
268223
shell: bash
@@ -289,25 +244,7 @@ jobs:
289244
- name: Push Changes
290245
uses: ad-m/github-push-action@b87afee92c6e70ea888be6203a3e9426fda49839
291246
with:
292-
## ssh: true
293-
atomic: true
294-
branch: main
295-
repository: ${{ github.repository }}
296-
297-
- name: Update linux/svtminion.sh sha256sum's
298-
run: |
299-
sha256sum linux/svtminion.sh | awk '{ print $1 }' > svtminion.sh.sha256
300-
sha256sum windows/svtminion.ps1 | awk '{ print $1 }' > svtminion.ps1.sha256
301-
ls -alh
302-
git add svtminion.sh.sha256
303-
git add svtminion.ps1.sha256
304-
git commit -am "Update sha256 checksums" || git commit -am "Update sha256 checksums"
305-
306-
- name: Push Changes
307-
uses: ad-m/github-push-action@b87afee92c6e70ea888be6203a3e9426fda49839
308-
with:
309-
## ssh: true
310-
tags: true
247+
ssh: true
311248
atomic: true
312249
branch: main
313250
repository: ${{ github.repository }}

.github/workflows/test-linux.yml

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -46,42 +46,12 @@ jobs:
4646
steps:
4747
- uses: actions/checkout@v4
4848

49-
## - name: Install Python Dependencies with pip breakage
50-
## if: ${{ ( inputs.distro-slug == 'debian-11' ) || ( inputs.distro-slug == 'debian-12' ) || ( inputs.distro-slug == 'debian-13' ) || ( inputs.distro-slug == 'ubuntu-2404' ) }}
51-
## run: |
52-
## echo "DGM pip test for distro-slug ${{ inputs.distro-slug }}"
53-
## echo "DGM doing break-system-packages for distro-slug ${{ inputs.distro-slug }}"
54-
## python3 -m pip install --break-system-packages -r tests/requirements.txt
55-
56-
## - name: Install Python Dependencies without pip breakage
57-
## if: ${{ ( inputs.distro-slug != 'debian-11' ) && ( inputs.distro-slug != 'debian-12' ) && ( inputs.distro-slug != 'debian-13' ) && ( inputs.distro-slug != 'ubuntu-2404' ) }}
58-
## run: |
59-
## echo "DGM pip test for distro-slug ${{ inputs.distro-slug }}"
60-
## echo "DGM plain pip for distro-slug ${{ inputs.distro-slug }}"
61-
## python3 -m pip install -r tests/requirements.txt
62-
63-
## - name: Get Version
64-
## run: |
65-
## # We need to get the version here and make it an environment variable
66-
## # It is used to install via bootstrap and in the test
67-
## # The version is in the instance name
68-
## # sed 1st - becomes space, 2nd - becomes dot
69-
## ## DGM needs cleanup
70-
## echo "matrix instance ,${{ matrix.instance }},"
71-
## vt_parms=$(echo "${{ matrix.instance }}" | sed 's/-/ /' | sed 's/-/./')
72-
## vt_parm_ver=$(echo "$vt_parms" | awk -F ' ' '{print $2}')
73-
## echo "vt parms ,$vt_parms, vt_parms_ver ,$vt_parm_ver,"
74-
## echo "SaltVersion=$vt_parm_ver" >> $GITHUB_ENV
75-
7649
- name: VMTools Salt
7750
run: |
7851
# sed 1st - becomes space, 2nd - becomes dot
79-
## DGM needs cleanup
80-
echo "matrix instance ,${{ matrix.instance }},"
8152
bt_parms=$(echo "${{ matrix.instance }}" | sed 's/-/ /' | sed 's/-/./')
8253
bt_arg1=$(echo "$bt_parms" | awk -F ' ' '{print $1}')
8354
bt_arg2=$(echo "$bt_parms" | awk -F ' ' '{print $2}')
84-
echo "bt parms ,$bt_parms, bt_arg1 ,$bt_arg1, bt_arg2 ,$bt_arg2,"
8555
bash -x ./linux/svtminion.sh "$bt_arg1" "$bt_arg2"
8656
8757
- name: Test VMTools

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,15 @@ The SHA256 sum of the `svtminion.sh` file, per release, is:
2626

2727
If you're looking for a *one-liner* to install Salt Minion, please read below.
2828

29-
There are also .sha256 files for verifying against in the repo for the main branch. You can also
30-
get the correct sha256 sum for the tagged release from
29+
There are also .sha256 files for verifying against in the repo for the main branch.
30+
You can also get the correct sha256 sum for the tagged release from
3131
https://github.com/saltstack/salt-vmtools/releases/latest/download/svtminion.sh.sha256 and
3232
https://github.com/saltstack/salt-vmtools/releases/latest/download/svtminion.ps1.sha256
3333

34+
The latest versions of the svtminion scripts for Linux and Windows from the following
35+
https://github.com/saltstack/salt-vmtools/releases/latest/download/svtminion.sh and
36+
https://github.com/saltstack/salt-vmtools/releases/latest/download/svtminion.ps1
37+
3438

3539
## Configuration options
3640

tests/linux/test-linux.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,6 @@ cat /etc/salt/minion | grep 'master:\ 192.168.0.5' 1>/dev/null
219219
./svtminion.sh --remove || { _retn=$?; echo "test failed, did not uninstall the salt-minion, returned '${_retn}'"; }
220220

221221
# test with classic package installed
222-
## rpm --import https://repo.saltproject.io/py3/redhat/8/x86_64/3005/SALTSTACK-GPG-KEY.pub # DGM FIX
223-
## curl -fsSL https://repo.saltproject.io/py3/redhat/8/x86_64/3005.repo | tee /etc/yum.repos.d/salt.repo # DGM FIX
224222
# Use 3005 Redhat 9 for Rocky 9 container
225223
rpm --import ${oldpwd}/tests/classic/SALTSTACK-GPG-KEY2.pub
226224
cp -a ${oldpwd}/tests/classic/3005.repo /etc/yum.repos.d/salt.repo

0 commit comments

Comments
 (0)