generated from blue-build/template
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (38 loc) · 1.26 KB
/
build-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
name: generate-iso
on:
schedule:
- cron:
"00 10 * * 1" # build at 10:00 UTC every Monday
workflow_dispatch:
jobs:
iso:
name: Create and Upload ISO
runs-on: ubuntu-latest
steps:
- name: Build ISO
uses: jasonn3/build-container-installer@main
id: iso
with:
arch: x86_64
image_name: blue95
image_repo: ghcr.io/ledif
image_tag: latest
version: 41
variant: xfce
iso_name: blue95-latest-41.iso
- name: Upload ISOs and Checksum to R2
if: github.ref_name == 'main'
shell: bash
env:
RCLONE_CONFIG_R2_TYPE: s3
RCLONE_CONFIG_R2_PROVIDER: Cloudflare
RCLONE_CONFIG_R2_ACCESS_KEY_ID: ${{ secrets.R2_ACCESS_KEY_ID }}
RCLONE_CONFIG_R2_SECRET_ACCESS_KEY: ${{ secrets.R2_SECRET_ACCESS_KEY }}
RCLONE_CONFIG_R2_REGION: auto
RCLONE_CONFIG_R2_ENDPOINT: ${{ secrets.R2_ENDPOINT }}
SOURCE_DIR: ${{ steps.upload-directory.outputs.iso-upload-dir }}
run: |
sudo apt-get update
sudo apt-get install -y rclone
rclone copyto ${{ steps.iso.outputs.iso_path }} R2:ublue-ledif
rclone copyto ${{ steps.iso.outputs.iso_path }}-CHECKSUM R2:ublue-ledif