Skip to content

Commit

Permalink
Merge pull request #243 from kaleido-io/fix-build
Browse files Browse the repository at this point in the history
Fix docker build and add to PR checks
  • Loading branch information
nguyer authored Mar 1, 2024
2 parents 22acb66 + 07d7c1b commit d3d27b2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,10 @@ jobs:

- name: Upload coverage
run: bash <(curl -s https://codecov.io/bash)

docker-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: docker build .
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
FROM golang:1.21-alpine3.19 AS builder
RUN apk add make
FROM golang:1.21-bullseye AS builder
WORKDIR /ethconnect
RUN apt-get update -y \
&& apt-get install -y build-essential git \
Expand All @@ -14,7 +13,7 @@ ADD . .
RUN cp go.mod.new go.mod
RUN make clean deps build

FROM debian:buster-slim
FROM debian:bullseye-slim
WORKDIR /ethconnect
COPY --from=builder /ethconnect/ethconnect .
COPY --from=builder /ethconnect/ethbinding.so .
Expand Down

0 comments on commit d3d27b2

Please sign in to comment.