mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
build and push manually (#5)
* containerize w/ github action to build and push to ghcr * fix gh action yml syntax * enable manual trigger * fix syntax * dont use github action, do it ourselves * push manually
This commit is contained in:
parent
3323bdd21c
commit
be97c9232f
1 changed files with 9 additions and 8 deletions
|
|
@ -18,11 +18,12 @@ jobs:
|
|||
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin
|
||||
|
||||
# TODO - build for amd64 and arm64?
|
||||
- name: Build and Publish latest Docker image
|
||||
uses: TCPShield/gp-docker-action@1.1.13
|
||||
with:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }} # Provide GITHUB_TOKEN to login into the GitHub Packages
|
||||
image-name: ghcr.io/astriaorg/go-ethereum # Provide only Docker image name, tag will be automatically set to latest
|
||||
# Pass some additional arguments to the docker build command
|
||||
# FIXME - version needs to be autoincrement, probably from git tags?
|
||||
custom-args: --build-arg COMMIT=${GITHUB_SHA} --build-arg VERSION=0.1.0 --build-arg BUILDNUM=${GITHUB_RUN_NUMBER}
|
||||
- name: Build latest Docker image
|
||||
run: docker build \
|
||||
--build-arg COMMIT=${GITHUB_SHA} \
|
||||
--build-arg VERSION=0.1 \
|
||||
--build-arg BUILDNUM=${GITHUB_RUN_NUMBER} \
|
||||
--tag ghcr.io/astriaorg/go-ethereum:latest .
|
||||
- name: Push latest Docker image
|
||||
run: docker push ghcr.io/astriaorg/go-ethereum:latest
|
||||
|
|
|
|||
Loading…
Reference in a new issue