-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Run installation check for all provied versions of codemeter-lite
- Loading branch information
1 parent
b695bc4
commit e92840d
Showing
3 changed files
with
42 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: CI ubuntu dispatch installation | ||
'on': | ||
workflow_call: null | ||
jobs: | ||
dispatch_installations: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout (GitHub) | ||
uses: actions/checkout@v4 | ||
- name: Provide the repo locally via http | ||
run: nohup python3 -m http.server 8080 & | ||
working-directory: ./ubuntu/ | ||
- name: Install maintainer publickey | ||
run: curl -s --compressed http://localhost:8080/burfeind_jan-niklas.gpg | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/burfeind_jan-niklas.gpg | ||
- name: Add local repo to APT sources | ||
run: echo "deb [signed-by=/etc/apt/trusted.gpg.d/burfeind_jan-niklas.gpg] http://localhost:8080 ./" | sudo tee /etc/apt/sources.list.d/localrepo.list | ||
- name: update apt | ||
run: sudo apt-get update | ||
- name: Get available versions of c-lite | ||
id: get_versions | ||
run: | | ||
apt-cache madison codemeter-lite | grep "http://localhost:8080" | awk '{print $3}' > versions.txt | ||
cat versions.txt | ||
- name: Trigger downstream jobs for each version | ||
run: | | ||
while read version; do | ||
echo "Triggering installation for version $version" | ||
gh workflow run ci_ubuntu_verify_installation.yml -f "package_version=$version" --ref ${{ github.ref_name }} | ||
done < versions.txt | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Kill the webserver again | ||
run: sudo pkill python3 |
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