-
-
Notifications
You must be signed in to change notification settings - Fork 4
63 lines (55 loc) · 1.5 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
59
60
61
62
63
name: Vib Build
on:
push:
branches: [ "main" ]
schedule:
- cron: '10 22 * * *'
workflow_dispatch:
env:
REGISTRY_USER: ${{ github.actor }}
REGISTRY_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
jobs:
check_update:
runs-on: ubuntu-latest
if: github.event_name != 'schedule'
steps:
- uses: actions/checkout@v4
- name: Check if there was an update to the base image
run: |
bash ${GITHUB_WORKSPACE}/.github/workflows/check_image_update.sh
echo "exitcode=$?"
hello_world:
runs-on: ubuntu-latest
needs: check_update
if: needs.check_update.outputs.exitcode == 0
steps:
- name: Hello World
run: echo "Hello, world"
bye_world:
runs-on: ubuntu-latest
needs: check_update
if: needs.check_update.outputs.exitcode != 0
steps:
- name: Bye World
run: echo "Bye, world"
# build:
#
# runs-on: ubuntu-latest
#
# steps:
# - uses: actions/checkout@v4
#
# - uses: vanilla-os/[email protected]
# with:
# recipe: 'recipe.yml'
# plugins: 'Vanilla-OS/vib-fsguard:v1.2-1'
#
# - name: Build the Docker image
# run: docker image build -f Containerfile --tag ghcr.io/vanilla-os/desktop:main .
#
# # Push the image to GHCR (Image Registry)
# - name: Push To GHCR
# if: github.repository == 'vanilla-os/desktop-image'
# run: |
# docker login ghcr.io -u ${{ env.REGISTRY_USER }} -p ${{ env.REGISTRY_PASSWORD }}
# docker image push "ghcr.io/vanilla-os/desktop:main"