-
Notifications
You must be signed in to change notification settings - Fork 1
94 lines (81 loc) · 3.72 KB
/
iso.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
on:
schedule:
- cron: '0 5 * * *'
workflow_dispatch:
name: ISO
jobs:
main:
runs-on: ubuntu-latest
permissions:
contents: read
container:
image: registry.fedoraproject.org/fedora-minimal:latest
options: --privileged
steps:
- name: Prepare
run: |
dnf -y install --nodocs --setopt=install_weak_deps=0 kiwi-cli kiwi-systemdeps git-core distribution-gpg-keys patch zstd
- uses: actions/checkout@v4
with:
submodules: 'true'
- name: Customize kiwi-descriptions
run: |
patch -Np1 -i .github/custom.diff
mkdir -p fedora-kiwi-descriptions/root/etc/yum.repos.d
cat << 'EOF' > fedora-kiwi-descriptions/root/etc/yum.repos.d/_copr:copr.fedorainfracloud.org:solopasha:kde-gear-unstable.repo
[copr:copr.fedorainfracloud.org:solopasha:kde-gear-unstable]
name=Copr repo for kde-gear-unstable owned by solopasha
baseurl=https://download.copr.fedorainfracloud.org/results/solopasha/kde-gear-unstable/fedora-$releasever-$basearch/
type=rpm-md
skip_if_unavailable=True
gpgcheck=1
gpgkey=https://download.copr.fedorainfracloud.org/results/solopasha/kde-gear-unstable/pubkey.gpg
repo_gpgcheck=0
enabled=1
enabled_metadata=1
[coprdep:copr.fedorainfracloud.org:solopasha:plasma-unstable]
name=Copr copr.fedorainfracloud.org/solopasha/kde-gear-unstable runtime dependency #1 - solopasha/plasma-unstable
baseurl=https://download.copr.fedorainfracloud.org/results/solopasha/plasma-unstable/fedora-$releasever-$basearch/
type=rpm-md
skip_if_unavailable=True
gpgcheck=1
gpgkey=https://download.copr.fedorainfracloud.org/results/solopasha/plasma-unstable/pubkey.gpg
repo_gpgcheck=0
enabled=1
enabled_metadata=1
EOF
- name: Get date
id: get-date
run: |
echo "date=$(date -u "+%Y%m%d.%H%M")" >> $GITHUB_OUTPUT
- name: Restore cache
id: cache
uses: actions/cache/restore@v4
with:
path: /var/cache/kiwi
key: iso-build-${{ steps.get-date.outputs.date }}
restore-keys: iso-build-
- name: Build
run: |
kiwi-ng --type=iso --profile=KDE-Desktop-Live --kiwi-file=Fedora.kiwi \
system build --description=fedora-kiwi-descriptions --target-dir=out-build \
--set-type-attr=volid=Fedora-KDE-Live-41 --set-type-attr=application_id=Fedora-KDE_Desktop-Live-41 --set-type-attr=publisher=solopasha \
--add-repo='https://download.copr.fedorainfracloud.org/results/solopasha/plasma-unstable/fedora-$releasever-$basearch/,rpm-md,plasma-unstable,98,false,true,{https://download.copr.fedorainfracloud.org/results/solopasha/plasma-unstable/pubkey.gpg}' \
--add-repo='https://download.copr.fedorainfracloud.org/results/solopasha/kde-gear-unstable/fedora-$releasever-$basearch/,rpm-md,kde-gear-unstable,98,false,true,{https://download.copr.fedorainfracloud.org/results/solopasha/kde-gear-unstable/pubkey.gpg}'
- name: Bundle
run: |
kiwi-ng result bundle --target-dir=out-build --bundle-dir=out --id="${{ steps.get-date.outputs.date }}-unstable-minimal" --bundle-format %N-%v-%I.%A
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: iso-build-${{ steps.get-date.outputs.date }}
path: out/*
retention-days: 21
compression-level: 0
- name: Save cache
id: cache-save
uses: actions/cache/save@v4
if: always()
with:
path: /var/cache/kiwi
key: ${{ steps.cache.outputs.cache-primary-key }}