-
Notifications
You must be signed in to change notification settings - Fork 2
66 lines (62 loc) · 1.62 KB
/
main.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
name: CI
on:
push:
branches:
- "**"
env:
REGISTRY: "quay.io"
IMAGE_NAME: travelping/fpp-vpp
# this points to buildkitd k8s service
BUILDKITD_ADDR: tcp://buildkitd:1234
jobs:
build:
runs-on:
- ubuntu-22.04
strategy:
matrix:
build_type: [debug, release]
env:
QUAY_USER_ID: ${{ secrets.QUAY_USER_ID }}
QUAY_TOKEN: ${{ secrets.QUAY_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Prepare repo
run: |
git config --global user.email "[email protected]"
git config --global user.name "dummy user"
hack/update-vpp.sh
- name: Login to quay.io
uses: docker/login-action@v1
with:
registry: ${{ env.REGISTRY }}
username: ${{ secrets.QUAY_USER_ID }}
password: ${{ secrets.QUAY_TOKEN }}
- name: Build fpp-vpp image
run: |
BUILD_TYPE="${{ matrix.build_type }}" hack/ci-build.sh
mv /tmp/_out _out
- name: Upload debs
uses: actions/upload-artifact@v4
with:
name: debs-${{ matrix.build_type }}
path: _out/*
- name: Upload image.txt
uses: actions/upload-artifact@v4
with:
name: image-${{ matrix.build_type }}
path: image-${{ matrix.build_type }}.txt
- name: Upload image.txt for the dev image
uses: actions/upload-artifact@v4
with:
name: image-dev-${{ matrix.build_type }}
path: image-dev-${{ matrix.build_type }}.txt
# dummy job for release.yaml to wait on
conclude:
runs-on:
- ubuntu-22.04
needs:
- build
steps:
- name: Dummy step
run: echo ok