Skip to content

Commit

Permalink
Add docker build workflow (#9)
Browse files Browse the repository at this point in the history
* Add docker build workflow

* Add Dockerfile
  • Loading branch information
cmmarslender authored Jul 31, 2024
1 parent 75b5cba commit 9e00af1
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Build Docker Images

on:
push:
branches:
- main
tags:
- '**'
pull_request:

jobs:
package:
uses: Chia-Network/actions/.github/workflows/docker-build.yaml@main
with:
push: ${{ github.event_name != 'pull_request' }}
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM golang:1 as builder

COPY . /app
WORKDIR /app

RUN make build

FROM gcr.io/distroless/static-debian12

COPY --from=builder /app/bin/chia-tools /chia-tools

ENTRYPOINT ["/chia-tools"]

0 comments on commit 9e00af1

Please sign in to comment.