Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev kmr #84

Merged
merged 8 commits into from
Aug 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 36 additions & 9 deletions .github/workflows/workshop-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,28 +21,55 @@ concurrency:

jobs:
workshop-ci:
runs-on: ubuntu-latest
runs-on: [ self-hosted, workshop ]

steps:
- uses: actions/checkout@v4

- name: Install Perl Dependencies
- name: Install git
run: |
sudo apt install libcoro-perl libjson-perl libjson-xs-perl libjson-validator-perl libdata-uuid-perl libdigest-sha-perl libcompress-raw-lzma-perl libcompress-raw-zlib-perl libcompress-raw-bzip2-perl cpanminus
echo
sudo cpanm IO::Uncompress::UnXz IO::Compress::Xz
sudo dnf install -y git

- name: Install container dependencies
run: |
sudo dnf install -y skopeo podman buildah

- name: Install Perl dependencies
run: |
sudo dnf install -y perl-Coro perl-JSON perl-JSON-XS perl-JSON-Validator perl-Data-UUID perl-Digest-SHA perl-Archive-Extract-xz-IO-Uncompress-UnXz.noarch

- name: Install Toolbox
run: |
if [ -d ~/toolbox ]; then
rm -Rf ~/toolbox
fi
pushd ~/
git clone https://github.com/perftool-incubator/toolbox.git

- name: Run workshop
- name: Run workshop - dump-config
run: |
export TOOLBOX_HOME=~/toolbox
echo
sudo --preserve-env=TOOLBOX_HOME ./workshop.pl --label workshop-ci-dump-config --userenv ./userenvs/fedora36-ci.json --dump-config true
sudo --preserve-env=TOOLBOX_HOME ./workshop.pl --log-level verbose --label workshop-ci-dump-config --userenv ./userenvs/fedora-ci.json --dump-config true

- name: Run workshop - dump-config - force-build-policy missing
run: |
export TOOLBOX_HOME=~/toolbox
echo
sudo --preserve-env=TOOLBOX_HOME ./workshop.pl --label workshop-ci-dump-files --userenv ./userenvs/fedora36-ci.json --dump-files true
sudo --preserve-env=TOOLBOX_HOME ./workshop.pl --log-level verbose --label workshop-ci-dump-config --userenv ./userenvs/fedora-ci.json --dump-config true --force-build-policy missing

- name: Run workshop - dump-files
run: |
export TOOLBOX_HOME=~/toolbox
echo
sudo --preserve-env=TOOLBOX_HOME ./workshop.pl --label workshop-ci --userenv ./userenvs/fedora36-ci.json --log-level verbose
sudo --preserve-env=TOOLBOX_HOME ./workshop.pl --log-level verbose --label workshop-ci-dump-files --userenv ./userenvs/fedora-ci.json --dump-files true

- name: Run workshop
run: |
export TOOLBOX_HOME=~/toolbox
echo
sudo --preserve-env=TOOLBOX_HOME ./workshop.pl --log-level verbose --label workshop-ci --userenv ./userenvs/fedora-ci.json

- name: Cleanup toolbox
run: |
rm -Rf ~/toolbox
10 changes: 9 additions & 1 deletion schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@
"2020.04.30",
"2022.07.25",
"2023.02.16",
"2024.03.22"
"2024.03.22",
"2024.08.07"
]
}
},
Expand Down Expand Up @@ -110,6 +111,13 @@
"tag": {
"type": "string",
"minLength": 1
},
"build-policy": {
"type": "string",
"enum": [
"missing",
"ifnewer"
]
}
},
"required": [
Expand Down
13 changes: 7 additions & 6 deletions userenvs/fedora36-ci.json → userenvs/fedora-ci.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
{
"workshop": {
"schema": {
"version": "2023.02.16"
"version": "2024.08.07"
}
},
"userenv": {
"name": "fedora36",
"label": "Fedora 36",
"name": "fedora40",
"label": "Fedora 40",
"origin": {
"image": "docker.io/library/fedora",
"tag": "36"
"tag": "40",
"build-policy": "ifnewer"
},
"properties": {
"platform": [
Expand All @@ -28,11 +29,11 @@
},
"requirements": [
{
"name": "python39",
"name": "python3",
"type": "distro",
"distro_info": {
"packages": [
"python39"
"python3"
]
}
},
Expand Down
121 changes: 0 additions & 121 deletions userenvs/fedora33.json

This file was deleted.

Loading
Loading