mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 11:41:19 +00:00
bf1d08c8cc
- [x] setup infra - [x] provide readme - [x] setup secrets (keys) for infra - [x] resolve todos - [x] remove unnecessary test actions triggers - [x] update go path (should be installed on runner properly - unlike my self hosted quick setup) - [x] provide docs on using checksum and signature to verify the binary
19 lines
362 B
Docker
19 lines
362 B
Docker
FROM docker.io/library/golang:1.20-alpine3.17 AS builder
|
|
WORKDIR /app
|
|
|
|
ADD go.mod go.mod
|
|
ADD go.sum go.sum
|
|
RUN go mod download
|
|
|
|
ADD . .
|
|
|
|
ARG GITHUB_TOKEN
|
|
|
|
RUN go build -o releaser main.go
|
|
RUN ./releaser --github-token=$GITHUB_TOKEN
|
|
|
|
FROM nginx:1.21.3-alpine
|
|
|
|
COPY page /usr/share/nginx/html
|
|
COPY --from=builder /app/releases.json /usr/share/nginx/html/data.json
|