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:
jesse snyder 2023-03-28 17:15:58 -06:00 committed by GitHub
parent 1172ff42f9
commit 3323bdd21c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,19 +1,21 @@
build-and-publish-latest:
name: Build and Publish Docker image
on:
workflow_dispatch:
push:
branches:
- astria # Running this job only for astria branch
jobs:
build-and-publish-latest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2 # Checking out the repo
- uses: actions/setup-go@v4
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
- 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?
- name: Build and Publish latest Docker image