mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
fix gh action syntax (#4)
* containerize w/ github action to build and push to ghcr * fix gh action yml syntax * enable manual trigger * fix syntax
This commit is contained in:
parent
1172ff42f9
commit
3323bdd21c
1 changed files with 6 additions and 4 deletions
|
|
@ -1,19 +1,21 @@
|
||||||
build-and-publish-latest:
|
name: Build and Publish Docker image
|
||||||
on:
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- astria # Running this job only for astria branch
|
- astria # Running this job only for astria branch
|
||||||
|
jobs:
|
||||||
|
build-and-publish-latest:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2 # Checking out the repo
|
- uses: actions/checkout@v2 # Checking out the repo
|
||||||
- uses: actions/setup-go@v4
|
- uses: actions/setup-go@v4
|
||||||
with:
|
with:
|
||||||
go-version: "^1.20.x" # The Go version to download (if necessary) and use.
|
go-version: "^1.20.x" # The Go version to download (if necessary) and use.
|
||||||
- run: go version
|
- run: go version
|
||||||
|
|
||||||
- name: Log in to registry
|
- name: Log in to registry
|
||||||
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin
|
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin
|
||||||
|
|
||||||
# TODO - build for amd64 and arm64?
|
# TODO - build for amd64 and arm64?
|
||||||
- name: Build and Publish latest Docker image
|
- name: Build and Publish latest Docker image
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue