Skip to content

Commit

Permalink
replace internal to pkg and add docker build job
Browse files Browse the repository at this point in the history
Signed-off-by: denis-tingajkin <denis.tingajkin@xored.com>
  • Loading branch information
denis-tingaikin committed Jun 23, 2020
1 parent 379c14e commit f4531f5
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,18 @@ jobs:
runs-on: ubuntu-latest
steps:
- run: printenv
docker:
name: Docker Build & Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v1
with:
go-version: 1.13.4
- name: Build container
run: docker build .
- name: Run tests
run: docker run --rm $(docker build -q . --target test)
automerge:
name: automerge
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ FROM go as build
WORKDIR /build
COPY go.mod go.sum ./
COPY ./local ./local
COPY ./internal/imports ./internal/imports
COPY pkg ./internal/imports
RUN go build ./internal/imports
COPY . .
RUN go build -o /bin/nsmgr .
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit f4531f5

Please sign in to comment.