-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (36 loc) · 1.05 KB
/
nightly.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
name: Nightly build
on:
schedule:
- cron: '0 0 * * *'
permissions:
contents: write
jobs:
build:
name: Build
runs-on: ubuntu-latest
strategy:
matrix:
arch:
- armv7
- aarch64
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install requirements
run: |
sudo apt update
sudo apt install -y packer qemu-system-x86 ansible
- name: Packer build
run: |
packer init .
packer build -force -only=qemu.${{ matrix.arch }} .
cd dist/${{ matrix.arch }}
tar -zcvf archlinux-raspberry-${{ matrix.arch }}.img.tar.gz archlinux-raspberry-${{ matrix.arch }}.img
- name: Set now variable
run: echo "NOW=$(date +'%Y%m%d')" >> "$GITHUB_ENV"
- name: Release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dist/${{ matrix.arch }}/archlinux-raspberry-${{ matrix.arch }}.img.tar.gz
tag: nightly-${{ env.NOW }}