Skip to content

Commit

Permalink
ci: build latest chaosnet 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 59d1a48 commit 42f11d3
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,22 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

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

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

0 comments on commit 42f11d3

Please sign in to comment.