Skip to content

Commit 259ea3c

Browse files
committed
WIP: CI test only without deplay
CI: add manual uefi-only boot.bin deploy workflow This workflow deploys versioned uefi-only OS zip images for installer use. Since it depends on repository variables it will only run manually via workflow_dispatch. Signed-off-by: Janne Grunau <j@jannau.net>
1 parent 4d2ac76 commit 259ea3c

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed

.github/workflows/uefi-only-build.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ on:
1111

1212
# Allows you to run this workflow manually from the Actions tab
1313
workflow_dispatch:
14+
# Allow being called from other workflows to deploy the artifact.
15+
workflow_call:
1416

1517
jobs:
1618
uefi-only-boot-bin:
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: uefi-only-deploy
2+
3+
on:
4+
workflow_dispatch:
5+
6+
env:
7+
UEFI_ONLY_VERSION: uefi-only-${{ vars.UEFI_DATE }}-${{ vars.UEFI_LINUX_TAG }}
8+
9+
jobs:
10+
build:
11+
uses: ./.github/workflows/uefi-only-build.yaml
12+
13+
deploy:
14+
needs: build
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Download artifact
18+
uses: actions/download-artifact@v5
19+
with:
20+
name: uefi-only-boot.bin
21+
22+
- name: Deploy to Bunny
23+
env:
24+
PKG_URL: https://storage.bunnycdn.com/asahilinux/os
25+
PKG_VER: ${{ env.UEFI_ONLY_VERSION }}.zip
26+
ACCESS_KEY: ${{ secrets.BUNNY_TOKEN }}
27+
run: |
28+
if [ ! -e "${PKG_VER}" ]; then
29+
echo "Package not found!"
30+
ls -R
31+
exit 1
32+
fi
33+
34+
upload() {
35+
curl -# --fail --request PUT \
36+
--url "${2}" \
37+
--variable %ACCESS_KEY \
38+
--expand-header 'AccessKey: {{ACCESS_KEY}}' \
39+
-H "Content-Type: ${3}" \
40+
-H "Accept: application/json" \
41+
--data-binary @${1}
42+
}
43+
44+
upload "${PKG_VER}" "${PKG_URL}/${PKG_VER}" "application/octet-stream"

0 commit comments

Comments
 (0)