Skip to content

Commit c4c55f5

Browse files
committed
.github/workflows: Remove support for Fedora 37 and 38
1 parent 806683d commit c4c55f5

File tree

1 file changed

+1
-193
lines changed

1 file changed

+1
-193
lines changed

.github/workflows/package.yml

Lines changed: 1 addition & 193 deletions
Original file line numberDiff line numberDiff line change
@@ -104,84 +104,6 @@ jobs:
104104
name: arch-latest
105105
path: release
106106

107-
build-f37:
108-
name: Build Fedora 37 package
109-
runs-on: ubuntu-latest
110-
container: registry.fedoraproject.org/fedora:37
111-
steps:
112-
- name: Checkout code
113-
uses: actions/checkout@v3
114-
115-
- name: Install build dependencies
116-
run: |
117-
dnf distro-sync -y
118-
dnf install -y rpmdevtools rpm-sign 'dnf-command(builddep)'
119-
dnf builddep -y fedora/surface-secureboot.spec
120-
121-
- name: Build package
122-
run: |
123-
cd fedora
124-
125-
# Build the .rpm packages
126-
./makerpm
127-
128-
- name: Sign packages
129-
env:
130-
GPG_KEY: ${{ secrets.LINUX_SURFACE_GPG_KEY }}
131-
run: |
132-
cd fedora/out/noarch
133-
134-
# import GPG key
135-
echo "$GPG_KEY" | base64 -d | gpg --import --no-tty --batch --yes
136-
137-
# sign packages
138-
rpm --resign *.rpm --define "_gpg_name $GPG_KEY_ID"
139-
140-
- name: Upload artifacts
141-
uses: actions/upload-artifact@v3
142-
with:
143-
name: fedora-37-latest
144-
path: fedora/out/noarch
145-
146-
build-f38:
147-
name: Build Fedora 38 package
148-
runs-on: ubuntu-latest
149-
container: registry.fedoraproject.org/fedora:38
150-
steps:
151-
- name: Checkout code
152-
uses: actions/checkout@v3
153-
154-
- name: Install build dependencies
155-
run: |
156-
dnf distro-sync -y
157-
dnf install -y rpmdevtools rpm-sign 'dnf-command(builddep)'
158-
dnf builddep -y fedora/surface-secureboot.spec
159-
160-
- name: Build package
161-
run: |
162-
cd fedora
163-
164-
# Build the .rpm packages
165-
./makerpm
166-
167-
- name: Sign packages
168-
env:
169-
GPG_KEY: ${{ secrets.LINUX_SURFACE_GPG_KEY }}
170-
run: |
171-
cd fedora/out/noarch
172-
173-
# import GPG key
174-
echo "$GPG_KEY" | base64 -d | gpg --import --no-tty --batch --yes
175-
176-
# sign packages
177-
rpm --resign *.rpm --define "_gpg_name $GPG_KEY_ID"
178-
179-
- name: Upload artifacts
180-
uses: actions/upload-artifact@v3
181-
with:
182-
name: fedora-38-latest
183-
path: fedora/out/noarch
184-
185107
build-f39:
186108
name: Build Fedora 39 package
187109
runs-on: ubuntu-latest
@@ -223,7 +145,7 @@ jobs:
223145

224146
release:
225147
name: Publish release
226-
needs: [build-deb, build-arch, build-f37, build-f38, build-f39]
148+
needs: [build-deb, build-arch, build-f39]
227149
runs-on: ubuntu-latest
228150
steps:
229151
- name: Download Debian artifacts
@@ -238,18 +160,6 @@ jobs:
238160
name: arch-latest
239161
path: arch-latest
240162

241-
- name: Download Fedora 37 artifacts
242-
uses: actions/download-artifact@v3
243-
with:
244-
name: fedora-37-latest
245-
path: fedora-37-latest
246-
247-
- name: Download Fedora 38 artifacts
248-
uses: actions/download-artifact@v3
249-
with:
250-
name: fedora-38-latest
251-
path: fedora-38-latest
252-
253163
- name: Download Fedora 39 artifacts
254164
uses: actions/download-artifact@v3
255165
with:
@@ -367,108 +277,6 @@ jobs:
367277
git commit -m "Update Arch Linux secure-boot MOK"
368278
git push --set-upstream origin "${update_branch}"
369279
370-
repo-f37:
371-
name: Update Fedora 37 package repository
372-
needs: [release]
373-
runs-on: ubuntu-latest
374-
container: registry.fedoraproject.org/fedora:37
375-
steps:
376-
- name: Install dependencies
377-
run: |
378-
dnf install -y git findutils
379-
380-
- name: Download artifacts
381-
uses: actions/download-artifact@v3
382-
with:
383-
name: fedora-37-latest
384-
path: fedora-37-latest
385-
386-
- name: Update repository
387-
env:
388-
SURFACEBOT_TOKEN: ${{ secrets.LINUX_SURFACE_BOT_TOKEN }}
389-
BRANCH_STAGING: u/staging
390-
GIT_REF: ${{ github.ref }}
391-
run: |
392-
repo="https://surfacebot:${SURFACEBOT_TOKEN}@github.com/linux-surface/repo.git"
393-
394-
# clone package repository
395-
git clone -b "${BRANCH_STAGING}" "${repo}" repo
396-
397-
# copy packages
398-
cp fedora-37-latest/* repo/fedora/f37
399-
cd repo/fedora/f37
400-
401-
# parse git tag from ref
402-
GIT_TAG=$(echo $GIT_REF | sed 's|^refs/tags/||g')
403-
404-
# convert packages into references
405-
for pkg in $(find . -name '*.rpm'); do
406-
echo "secureboot-mok:$GIT_TAG/$(basename $pkg)" > $pkg.blob
407-
rm $pkg
408-
done
409-
410-
# set git identity
411-
git config --global user.email "[email protected]"
412-
git config --global user.name "surfacebot"
413-
414-
# commit and push
415-
update_branch="${BRANCH_STAGING}-$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)"
416-
git checkout -b "${update_branch}"
417-
git add .
418-
git commit -m "Update Fedora 37 secure-boot MOK"
419-
git push --set-upstream origin "${update_branch}"
420-
421-
repo-f38:
422-
name: Update Fedora 38 package repository
423-
needs: [release]
424-
runs-on: ubuntu-latest
425-
container: registry.fedoraproject.org/fedora:38
426-
steps:
427-
- name: Install dependencies
428-
run: |
429-
dnf install -y git findutils
430-
431-
- name: Download artifacts
432-
uses: actions/download-artifact@v3
433-
with:
434-
name: fedora-38-latest
435-
path: fedora-38-latest
436-
437-
- name: Update repository
438-
env:
439-
SURFACEBOT_TOKEN: ${{ secrets.LINUX_SURFACE_BOT_TOKEN }}
440-
BRANCH_STAGING: u/staging
441-
GIT_REF: ${{ github.ref }}
442-
run: |
443-
repo="https://surfacebot:${SURFACEBOT_TOKEN}@github.com/linux-surface/repo.git"
444-
445-
# clone package repository
446-
git clone -b "${BRANCH_STAGING}" "${repo}" repo
447-
448-
# copy packages
449-
cp fedora-38-latest/* repo/fedora/f38
450-
cd repo/fedora/f38
451-
452-
# parse git tag from ref
453-
GIT_TAG=$(echo $GIT_REF | sed 's|^refs/tags/||g')
454-
455-
# convert packages into references
456-
for pkg in $(find . -name '*.rpm'); do
457-
echo "secureboot-mok:$GIT_TAG/$(basename $pkg)" > $pkg.blob
458-
rm $pkg
459-
done
460-
461-
# set git identity
462-
git config --global user.email "[email protected]"
463-
git config --global user.name "surfacebot"
464-
465-
# commit and push
466-
update_branch="${BRANCH_STAGING}-$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)"
467-
git checkout -b "${update_branch}"
468-
git add .
469-
git commit -m "Update Fedora 38 secure-boot MOK"
470-
git push --set-upstream origin "${update_branch}"
471-
472280
repo-f39:
473281
name: Update Fedora 39 package repository
474282
needs: [release]

0 commit comments

Comments
 (0)