From e5cda97e38d983da265faa830bc2badfd4fe1fc2 Mon Sep 17 00:00:00 2001 From: David Ortiz Date: Mon, 11 Jan 2021 14:59:44 +0100 Subject: [PATCH 1/2] Dockerfile: add missing pkg dir --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 74eb9d74..c1b10a43 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 From 41211dc42e45059e2b65a0ea54a50a8a8ac826e1 Mon Sep 17 00:00:00 2001 From: David Ortiz Date: Mon, 11 Jan 2021 15:38:05 +0100 Subject: [PATCH 2/2] github-actions: build docker image --- .github/workflows/go.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index b3bf9043..8d3c6fad 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -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