-
Notifications
You must be signed in to change notification settings - Fork 15
40 lines (34 loc) · 1014 Bytes
/
e2sm_mho.yml
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
# SPDX-License-Identifier: Apache-2.0
# Copyright 2024 Intel Corporation
name: e2sm_mho
on:
push:
branches:
- master
pull_request:
env:
E2T_MOD: github.com/onosproject/onos-e2t@master
ONOS_E2_SM_VERSION: latest
jobs:
e2sm_mho:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./servicemodels/e2sm_mho
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: Build
run: go build -o build/_output/e2sm_mho.so.1.0.0 -buildmode=plugin .
- name: Unit tests
run: GODEBUG=cgocheck=0 go test -race ./...
- name: docker-build
run: |
cd ../..
./build/bin/build-deps e2sm_mho $E2T_MOD
docker build . -f build/plugins/Dockerfile \
--build-arg PLUGIN_MAKE_TARGET="e2sm_mho" \
--build-arg PLUGIN_MAKE_VERSION="1.0.0" \
-t onosproject/service-model-docker-e2sm_mho-1.0.0:$ONOS_E2_SM_VERSION