File tree Expand file tree Collapse file tree 3 files changed +59
-0
lines changed Expand file tree Collapse file tree 3 files changed +59
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Price Feeder Docker Release
2+ on :
3+ push :
4+ tags :
5+ - " price-feeder/v*.*.*"
6+
7+
8+ jobs :
9+ price-feeder-docker :
10+ name : price-feeder Docker
11+ runs-on : ubuntu-latest
12+ steps :
13+ - name : checkout
14+ uses : actions/checkout@v3
15+
16+ - name : Set up QEMU
17+ uses : docker/setup-qemu-action@v2
18+
19+ - name : Docker meta
20+ id : meta
21+ uses : docker/metadata-action@v4
22+ with :
23+ images : ghcr.io/cosmoscontracts/price-feeder
24+ tags :
25+ type=semver,pattern=v{{version}}
26+
27+ - name : Set up Docker Buildx
28+ uses : docker/setup-buildx-action@v2
29+
30+ - name : Login to GHCR
31+ uses : docker/login-action@v2
32+ with :
33+ registry : ghcr.io
34+ username : ${{ github.repository_owner }}
35+ password : ${{ secrets.GITHUB_TOKEN }}
36+
37+ - name : Build and push
38+ uses : docker/build-push-action@v3
39+ with :
40+ context : .
41+ file : price-feeder/price-feeder.Dockerfile
42+ push : true
43+ tags : ${{ steps.meta.outputs.tags }}
44+ labels : ${{ steps.meta.outputs.labels }}
File renamed without changes.
Original file line number Diff line number Diff line change 1+ # Fetch base packages
2+ FROM golang:1.19-alpine AS builder
3+ ENV PACKAGES make git libc-dev gcc linux-headers
4+ RUN apk add --no-cache $PACKAGES
5+ WORKDIR /src/app/
6+ COPY . .
7+ # Build the binary
8+ RUN cd price-feeder && make install
9+
10+ FROM alpine:3.14
11+ RUN apk add bash curl jq
12+ COPY --from=builder /go/bin/price-feeder /usr/local/bin/
13+ EXPOSE 7171
14+ CMD ["price-feeder" ]
15+ STOPSIGNAL SIGTERM
You can’t perform that action at this time.
0 commit comments