-
-
Notifications
You must be signed in to change notification settings - Fork 6
54 lines (53 loc) · 1.67 KB
/
archiso.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
name: Build Weekly Arch Install
on:
push:
branches:
- master
schedule:
- cron: '0 0 * * 3' # weekly, wednesday 0:00
jobs:
build:
name: Build Weekly ISO
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
- name: Build ISO Images in Docker
run: |
docker build -t "arch-install" .
docker run \
--name="arch-installer" \
--privileged \
--mount type=bind,source=${PWD},target=/root \
"arch-install"
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.date.outputs.date }}
release_name: Weekly Build ${{ steps.date.outputs.date }}
draft: false
prerelease: false
- name: Upload SSH ISO
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: arch-install-ssh.iso
asset_name: arch-install-ssh.iso
asset_content_type: application/zip
- name: Upload ISO
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: arch-install.iso
asset_name: arch-install.iso
asset_content_type: application/zip