-
Notifications
You must be signed in to change notification settings - Fork 41
75 lines (63 loc) · 1.76 KB
/
library-bun1.1.yaml
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
64
65
66
67
68
69
70
71
72
73
74
75
name: library/bun1.1
on:
schedule:
- cron: '0 0 * * *' # Everyday at 12AM
push:
branches: [main]
paths:
- 'library/bun/1.1/**'
- '.github/workflows/library-bun1.1.yaml'
- '!library/bun/1.1/README.md'
pull_request:
types: [opened, synchronize, reopened]
branches: [main]
paths:
- 'library/bun/1.1/**'
- '.github/workflows/library-bun1.1.yaml'
- '!library/bun/1.1/README.md'
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- plat: qemu
arch: x86_64
- plat: fc
arch: x86_64
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build bun1.1
uses: unikraft/kraftkit@staging
with:
loglevel: debug
workdir: library/bun1.1
runtimedir: /github/workspace/.kraftkit
plat: ${{ matrix.plat }}
arch: ${{ matrix.arch }}
push: false
output: oci://index.unikraft.io/unikraft.org/bun:1.1
- name: Archive OCI digests
uses: actions/upload-artifact@v4
with:
name: oci-digests-${{ matrix.arch }}-${{ matrix.plat }}
path: ${{ github.workspace }}/.kraftkit/oci/digests
if-no-files-found: error
push:
if: ${{ github.event_name == 'push' || github.event_name == 'schedule' }}
needs: [ build ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Login to OCI registry
uses: docker/login-action@v2
with:
registry: index.unikraft.io
username: ${{ secrets.REG_USERNAME }}
password: ${{ secrets.REG_TOKEN }}
- name: Retrieve, merge and push OCI digests
uses: ./.github/actions/merge-oci-digests
with:
name: index.unikraft.io/unikraft.org/bun:1.1
push: true