-
Notifications
You must be signed in to change notification settings - Fork 45
51 lines (51 loc) · 1.28 KB
/
pr_build.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
name: PR Build
on:
push:
branches:
- master
pull_request: {}
workflow_dispatch: {}
env:
GO_VERSION: 1.19.4
CHANGE_MINIKUBE_NONE_USER: true
jobs:
test-all:
runs-on: ubuntu-22.04
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup go
uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION }}
- name: install minikube
id: minikube
uses: medyagh/setup-minikube@master
#- name: Envoy example
# run: examples/envoy/test.sh
- name: K8s examples
run: examples/k8s/test-all.sh
packages:
strategy:
matrix:
os: [ubuntu-24.04]
arch: ["", "-arm"]
runs-on: ${{ matrix.os }}${{ matrix.arch }}
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@v4
- run: |
set -xe
echo "building: {{github.ref_name}}-$(uname -i)"
docker build -t t examples/rpms
mkdir -p /tmp/packages
docker run -i --rm -v /tmp:/tmp t cp -a /usr/share/nginx/html/* /tmp/packages
- name: Archive artifacts
uses: actions/upload-artifact@v4
with:
name: packages
retention-days: 7
path: |
/tmp/packages