Skip to content

Commit 3323bdd

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

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
1-
build-and-publish-latest:
1+
name: Build and Publish Docker image
22
on:
3+
workflow_dispatch:
34
push:
45
branches:
56
- astria # Running this job only for astria branch
7+
jobs:
8+
build-and-publish-latest:
69
runs-on: ubuntu-latest
7-
810
steps:
911
- uses: actions/checkout@v2 # Checking out the repo
1012
- uses: actions/setup-go@v4
1113
with:
12-
go-version: "^1.20.x" # The Go version to download (if necessary) and use.
14+
go-version: "^1.20.x" # The Go version to download (if necessary) and use.
1315
- run: go version
1416

1517
- name: Log in to registry
16-
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin
18+
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin
1719

1820
# TODO - build for amd64 and arm64?
1921
- name: Build and Publish latest Docker image

0 commit comments

Comments
 (0)