-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrading GitHub CI to latest + bump to Ubuntu 22.04
- Loading branch information
Showing
3 changed files
with
39 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,19 @@ | ||
FROM ubuntu:20.04 | ||
FROM --platform=$BUILDPLATFORM golang:1.23-bullseye AS build | ||
|
||
WORKDIR /src | ||
|
||
ARG TARGETOS TARGETARCH | ||
|
||
RUN --mount=target=. \ | ||
--mount=type=cache,target=/root/.cache/go-build \ | ||
--mount=type=cache,target=/go/pkg \ | ||
GOOS=$TARGETOS GOARCH=$TARGETARCH go build -o /app/substreams . | ||
|
||
FROM ubuntu:22.04 | ||
|
||
RUN DEBIAN_FRONTEND=noninteractive apt-get update && \ | ||
apt-get -y install -y ca-certificates libssl1.1 | ||
apt-get -y install -y ca-certificates libssl3 | ||
|
||
COPY --from=build /app/substreams /app/substreams | ||
|
||
ADD ./substreams /app/substreams | ||
ENTRYPOINT /app/substreams | ||
ENTRYPOINT ["/app/substreams"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters