Skip to content

Commit

Permalink
Arrange github workflows
Browse files Browse the repository at this point in the history
Signed-off-by: gatici <[email protected]>
  • Loading branch information
gatici committed Jan 17, 2024
1 parent 5c30540 commit efc6849
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -67,7 +66,8 @@ jobs:
uses: golangci/[email protected]
with:
version: latest
args: -v --config ./.golangci.yml
args: -v --config ../../.golangci.yml
working-directory: ./mongoapi/dbtestapp

license-check:
runs-on: ubuntu-latest
Expand Down
8 changes: 4 additions & 4 deletions mongoapi/dbtestapp/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit efc6849

Please sign in to comment.