Skip to content

Commit

Permalink
ci: build latest docker image on master push
Browse files Browse the repository at this point in the history
  • Loading branch information
k-yang committed Nov 21, 2023
1 parent fc4dcd3 commit 59d1a48
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
push:
tags:
- "*"
branches:
- master

permissions:
contents: write
Expand Down Expand Up @@ -40,11 +42,22 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push versioned image
- name: Build and push tagged image
uses: docker/build-push-action@v5
if: startsWith(github.ref, 'refs/tags/v')
with:
file: contrib/docker/goreleaser.Dockerfile
context: .
push: true
platforms: linux/amd64,linux/arm64
tags: ghcr.io/nibiruchain/nibiru:${{ steps.get_version.outputs.version-without-v }}

- name: Build and push latest image
uses: docker/build-push-action@v5
if: startsWith(github.ref, 'refs/heads/master')
with:
file: contrib/docker/goreleaser.Dockerfile
context: .
push: true
platforms: linux/amd64,linux/arm64
tags: ghcr.io/nibiruchain/nibiru:latest

0 comments on commit 59d1a48

Please sign in to comment.