forked from ccfos/huatuo
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-build-lint-and-vendor.yml
More file actions
44 lines (42 loc) · 1.14 KB
/
Copy pathdocker-build-lint-and-vendor.yml
File metadata and controls
44 lines (42 loc) · 1.14 KB
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
name: build, lint and vendor codes
on:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
lint-vendor-build:
name: Build, Lint and Vendor
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
fetch-depth: 0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build docker image used by linters
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile.devel
push: false
load: true
tags: huatuo-dev:latest
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Make build, check and vendor
run: |
docker run --rm \
-v ${{ github.workspace }}:/workspace \
-w /workspace \
huatuo-dev:latest \
sh -xec '
git config --global --add safe.directory /workspace
make bpf-build
make build
make --trace check
make vendor
git diff --exit-code
'