-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: gatici <[email protected]>
- Loading branch information
Showing
3 changed files
with
14 additions
and
11 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -35,11 +35,10 @@ jobs: | |
with: | ||
go-version-file: 'go.mod' | ||
|
||
- name: Build and push Docker image | ||
- name: Build Docker image | ||
run: | | ||
cd mongoapi/dbtestapp | ||
make docker-build | ||
make docker-push | ||
build: | ||
runs-on: ubuntu-latest | ||
|
@@ -56,6 +55,9 @@ jobs: | |
lint: | ||
name: lint | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
directory: [drsm, flowdesc, fsm, httpwrapper, idgenerator, logger, mapstruct, milenage, mongoapi, mongoapi/dbtestapp, ueauth, version] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
|
@@ -67,7 +69,8 @@ jobs: | |
uses: golangci/[email protected] | ||
with: | ||
version: latest | ||
args: -v --config ./.golangci.yml | ||
args: -v --config ../.golangci.yml | ||
working-directory: ${{ matrix.directory }} | ||
|
||
license-check: | ||
runs-on: ubuntu-latest | ||
|
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,15 +4,15 @@ | |
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
|
||
FROM golang:1.21.3-bookworm AS test | ||
FROM golang:1.21.6-bookworm AS test | ||
|
||
LABEL maintainer="ONF <[email protected]>" | ||
|
||
RUN apt-get update && apt-get -y install vim | ||
|
||
RUN cd $GOPATH/src && mkdir -p dbtestapp | ||
COPY . $GOPATH/src/dbtestapp | ||
RUN cd $GOPATH/src/dbtestapp && go install | ||
WORKDIR $GOPATH/src/dbtestapp | ||
COPY . . | ||
RUN go install | ||
|
||
FROM alpine:3.16 AS dbtestapp | ||
RUN apk update && apk add -U gcompat vim strace net-tools curl netcat-openbsd bind-tools bash | ||
|
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