Skip to content

Commit

Permalink
Merge pull request #4 from 3scale-labs/docker-image
Browse files Browse the repository at this point in the history
Fix docker image build
  • Loading branch information
davidor authored Jan 11, 2021
2 parents 19ce6fc + 41211dc commit 76b38d9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ on:
- '*'

jobs:
docker-build:
name: Build Docker image
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build Docker image
run: make docker-build
test:
name: Test
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ RUN go mod download
COPY main.go main.go
COPY api/ api/
COPY controllers/ controllers/
COPY pkg/ pkg/

# Build
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -a -o manager main.go
Expand Down

0 comments on commit 76b38d9

Please sign in to comment.