Feature/containerize (#6)

* 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

* correct multi line
This commit is contained in:
jesse snyder 2023-03-28 17:32:15 -06:00 committed by GitHub
parent be97c9232f
commit 97a0ee26ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,10 +20,11 @@ jobs:
# TODO - build for amd64 and arm64? # TODO - build for amd64 and arm64?
# FIXME - version needs to be autoincrement, probably from git tags? # FIXME - version needs to be autoincrement, probably from git tags?
- name: Build latest Docker image - name: Build latest Docker image
run: docker build \ run: |
--build-arg COMMIT=${GITHUB_SHA} \ docker build \
--build-arg VERSION=0.1 \ --build-arg COMMIT=${GITHUB_SHA} \
--build-arg BUILDNUM=${GITHUB_RUN_NUMBER} \ --build-arg VERSION=0.1 \
--tag ghcr.io/astriaorg/go-ethereum:latest . --build-arg BUILDNUM=${GITHUB_RUN_NUMBER} \
--tag ghcr.io/astriaorg/go-ethereum:latest .
- name: Push latest Docker image - name: Push latest Docker image
run: docker push ghcr.io/astriaorg/go-ethereum:latest run: docker push ghcr.io/astriaorg/go-ethereum:latest