-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Derek Anderson <[email protected]>
- Loading branch information
Showing
2 changed files
with
36 additions
and
0 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
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 }} |
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 |
---|---|---|
@@ -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"] |