Skip to content

Commit

Permalink
Fix docker build and add to PR checks
Browse files Browse the repository at this point in the history
Signed-off-by: Nicko Guyer <[email protected]>
  • Loading branch information
nguyer committed Mar 1, 2024
1 parent 22acb66 commit 07d7c1b
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 07d7c1b

Please sign in to comment.