generated from networkservicemesh/cmd-template
-
Notifications
You must be signed in to change notification settings - Fork 21
69 lines (57 loc) · 1.97 KB
/
ci.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
---
name: ci
on:
push:
branches:
- 'main'
- 'release/**'
pull_request:
jobs:
# yamllint:
# uses: networkservicemesh/.github/.github/workflows/yamllint.yaml@main
# with:
# config_file: "./.yamllint.yml"
shellcheck:
uses: networkservicemesh/.github/.github/workflows/shellcheck.yaml@main
golangci-lint:
uses: networkservicemesh/.github/.github/workflows/golangci-lint.yaml@main
excludeFmtErrorf:
uses: networkservicemesh/.github/.github/workflows/exclude-fmt-errorf.yaml@main
restrictNSMDeps:
uses: networkservicemesh/.github/.github/workflows/restrict-nsm-deps.yaml@main
with:
allowed_repositories: "api, sdk, sdk-k8s, sdk-kernel, sdk-sriov, sdk-vpp, govpp, vpphelper"
# checkgomod:
# uses: networkservicemesh/.github/.github/workflows/checkgomod.yaml@main
gogenerate:
uses: networkservicemesh/.github/.github/workflows/cmd-gogenerate.yaml@main
excludereplace:
uses: networkservicemesh/.github/.github/workflows/exclude-replace.yaml@main
docker-build-and-test:
if: github.repository != 'networkservicemesh/cmd-template'
uses: networkservicemesh/.github/.github/workflows/docker-build-and-test.yaml@main
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
docker:
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v4
with:
ref: refs/heads/release/v1.11.1
- name: "Set up Docker Buildx"
uses: docker/setup-buildx-action@v1
- name: "Login to GitHub Container Registry"
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.NSM_BOT_GITHUB_TOKEN }}
- name: "Build and push"
uses: docker/build-push-action@v2
with:
file: Dockerfile
context: .
push: true
platforms: linux/amd64,linux/arm64
tags: "ghcr.io/networkservicemesh/cmd-forwarder-vpp:v1.11.1"