Skip to content

Commit

Permalink
docker file
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Anderson <[email protected]>
  • Loading branch information
dmikey committed Jun 5, 2024
1 parent 6dd03b1 commit 57d450c
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: build docker images

on:
release:
types: [created]
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v3
with:
go-version: "1.22.2"
check-latest: true
- uses: actions/checkout@v2
- name: Prepare Release Variables
id: vars
uses: ignite/cli/actions/release/vars@main
- name: build
run: |
echo "${{ secrets.GHCR_TOKEN }}" | docker login ghcr.io -u "${{ secrets.GHCR_USER }}" --password-stdin
docker build . --tag ghcr.io/${{ github.repository }}:${{ steps.vars.outputs.tag_name }} -f Dockerfile
docker push ghcr.io/${{ github.repository }}:${{ steps.vars.outputs.tag_name }}
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# node build
from golang:1.22.2-bookworm as gobuilder
WORKDIR /
COPY . .
RUN go build -o bls-avs-tools cli/*.go

# final image
from debian:bookworm-slim
WORKDIR /
COPY --from=gobuilder bls-avs-tools bls-avs-tools

ENTRYPOINT ["/bls-avs-tools"]

0 comments on commit 57d450c

Please sign in to comment.