-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (34 loc) · 1.22 KB
/
build-and-release.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
name: Build and Release
on:
workflow_dispatch:
push:
env:
CACHE_PATH: ${{secrets.SERVER_REPO_PATH}}
OSTREE_REPO: ${{secrets.OSTREE_REPO}}
OSTREE_GPG: ${{secrets.OSTREE_GPG}}
VERSION: ${{ startsWith(github.ref, 'refs/tags/') && github.ref_name || 'continuous' }}
CHANNEL: ${{ endsWith(github.ref, 'stable') && 'stable' || 'unstable' }}
OSTREE_BRANCH: "x86_64/os/${{ endsWith(github.ref, 'stable') && 'stable' || 'unstable' }}"
SIGN_KEYS_PATH: ${{secrets.SIGN_KEYS_PATH}}
jobs:
build:
name: Build Collection
runs-on: self-hosted
timeout-minutes: 47000
steps:
- uses: actions/checkout@v1
with:
token: ${{ secrets.CI_TOKEN }}
submodules: true
- name: Add sign keys
run: rm -rf assets/sign-keys && cp -r ${SIGN_KEYS_PATH} assets/sign-keys
- name: Write changelog
run: echo -e "${{ github.event.head_commit.message }}" > ChangeLog
- name: Build Installer ISO
run: make ELEMENT=installer/image.yml
- name: Checkout installer iso
run: make checkout ELEMENT=installer/image.yml
- name: Update Ostree
run: make ELEMENT=system/repo.yml update-ostree
- name: Update extensions
run: make extensions