diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 3116b4337..2664c9b77 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -31,7 +31,7 @@ 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: @@ -39,4 +39,14 @@ jobs: context: . push: true platforms: linux/amd64,linux/arm64 - tags: ghcr.io/nibiruchain/chaosnet:${{ steps.get_version.outputs.version }} \ No newline at end of file + 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 \ No newline at end of file