-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
344 additions
and
1,191 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# Copyright 2023 Canonical Ltd. | ||
|
||
name: Master workflow | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: 1.21 | ||
|
||
- name: Build | ||
run: go build | ||
|
||
docker-build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: 1.21 | ||
|
||
- name: Build and push Docker image | ||
run: make docker-build | ||
|
||
lint: | ||
name: lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: 1.21 | ||
|
||
- name: golangci-lint | ||
uses: golangci/[email protected] | ||
with: | ||
version: latest | ||
args: -v --config ./.golangci.yml | ||
|
||
license-check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: reuse lint | ||
run: make check-reuse | ||
|
||
unit-tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: 1.21 | ||
|
||
- name: Unit tests | ||
run: go test ./... |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,19 +4,14 @@ | |
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
|
||
FROM golang:1.16.0-stretch AS builder | ||
FROM golang:1.21.5-bookworm AS builder | ||
|
||
LABEL maintainer="ONF <[email protected]>" | ||
|
||
RUN echo "deb http://archive.debian.org/debian stretch main" > /etc/apt/sources.list | ||
#RUN apt remove cmdtest yarn | ||
RUN apt-get update && apt-get -y install apt-transport-https ca-certificates | ||
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg > pubkey.gpg | ||
RUN apt-key add pubkey.gpg | ||
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - | ||
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list | ||
RUN apt-get update | ||
RUN apt-get -y install gcc cmake autoconf libtool pkg-config libmnl-dev libyaml-dev nodejs yarn | ||
RUN apt-get -y install gcc cmake autoconf libtool pkg-config libmnl-dev libyaml-dev | ||
RUN apt-get clean | ||
|
||
|
||
|
@@ -27,7 +22,7 @@ RUN cd $GOPATH/src/smf \ | |
# compile upf-adapter binary | ||
RUN cd $GOPATH/src/smf/upfadapter && CGO_ENABLED=0 go build | ||
|
||
FROM alpine:3.16 as smf | ||
FROM alpine:3.19 as smf | ||
|
||
LABEL description="ONF open source 5G Core Network" \ | ||
version="Stage 3" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.