Skip to content

Commit be97c92

Browse files
authored
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
1 parent 3323bdd commit be97c92

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

.github/workflows/astria-build-and-publish-image.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,12 @@ jobs:
1818
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin
1919

2020
# TODO - build for amd64 and arm64?
21-
- name: Build and Publish latest Docker image
22-
uses: TCPShield/[email protected]
23-
with:
24-
github-token: ${{ secrets.GITHUB_TOKEN }} # Provide GITHUB_TOKEN to login into the GitHub Packages
25-
image-name: ghcr.io/astriaorg/go-ethereum # Provide only Docker image name, tag will be automatically set to latest
26-
# Pass some additional arguments to the docker build command
27-
# FIXME - version needs to be autoincrement, probably from git tags?
28-
custom-args: --build-arg COMMIT=${GITHUB_SHA} --build-arg VERSION=0.1.0 --build-arg BUILDNUM=${GITHUB_RUN_NUMBER}
21+
# FIXME - version needs to be autoincrement, probably from git tags?
22+
- name: Build latest Docker image
23+
run: docker build \
24+
--build-arg COMMIT=${GITHUB_SHA} \
25+
--build-arg VERSION=0.1 \
26+
--build-arg BUILDNUM=${GITHUB_RUN_NUMBER} \
27+
--tag ghcr.io/astriaorg/go-ethereum:latest .
28+
- name: Push latest Docker image
29+
run: docker push ghcr.io/astriaorg/go-ethereum:latest

0 commit comments

Comments
 (0)