-
-
Notifications
You must be signed in to change notification settings - Fork 11
58 lines (45 loc) · 1.29 KB
/
vib-build.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
55
56
57
58
name: Vib Build
on:
push:
branches: [ "main" ]
workflow_dispatch:
env:
REGISTRY_USER: ${{ github.actor }}
REGISTRY_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Rootfs
run: |
sudo apt install -y debootstrap podman
cd rootfs
sudo sh build.sh
cd ..
- uses: vanilla-os/[email protected]
- name: Build the Docker image
run: docker image build -f Containerfile --tag ghcr.io/vanilla-os/pico:main .
- name: Create SHA256SUMS
run: |
cd rootfs
sha256sum vanilla-pico.tar.gz > SHA256SUMS
cd ..
# Push the image to GHCR (Image Registry)
- name: Push To GHCR
run: |
docker login ghcr.io -u ${{ env.REGISTRY_USER }} -p ${{ env.REGISTRY_PASSWORD }}
docker image push "ghcr.io/vanilla-os/pico:main"
- uses: actions/upload-artifact@v4
with:
name: vanilla-pico-rootfs
path: rootfs/vanilla-pico.tar.zst
- uses: softprops/action-gh-release@v2
with:
token: "${{ secrets.GITHUB_TOKEN }}"
tag_name: "continuous"
prerelease: true
name: "Continuous Build"
files: |
rootfs/vanilla-pico.tar.gz
rootfs/SHA256SUMS