Skip to content

Commit

Permalink
chore(build): enable push
Browse files Browse the repository at this point in the history
  • Loading branch information
0xawaz committed Nov 11, 2024
1 parent 96af4a9 commit 27567aa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/fhevm-geth-coprocessor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ jobs:
packages: "write"
with:
working-directory: "."
push_image: ${{ github.event_name == 'release' || github.ref_name == 'main' }}
# ${{ github.event_name == 'release' || github.ref_name == 'main' }}
push_image: true
image-name: "geth-coprocessor"
image-dev-name: "geth-coprocessor-devnode"
generate-dev-image: true
Expand Down
12 changes: 2 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
# Specify build arguments for metadata
ARG COMMIT=""
ARG VERSION=""
ARG BUILDNUM=""

# Build Geth in a stock Go builder container
FROM golang:1.22-alpine AS builder
FROM golang:1.22-alpine AS build

# Install dependencies
RUN apk add --no-cache gcc musl-dev linux-headers git
Expand All @@ -22,13 +17,10 @@ FROM alpine:3.20.3
RUN apk add --no-cache ca-certificates

# Copy the Geth binary from the builder stage
COPY --from=builder /go-ethereum/build/bin/geth /usr/local/bin/
COPY --from=build /go-ethereum/build/bin/geth /usr/local/bin/

# Expose required ports
EXPOSE 8545 8546 30303 30303/udp

# Set entrypoint
ENTRYPOINT ["geth"]

# Apply metadata labels
LABEL commit="${COMMIT}" version="${VERSION}" buildnum="${BUILDNUM}"

0 comments on commit 27567aa

Please sign in to comment.