Skip to content

build(repo): Adjust helm chart for Prometheus (#302) #350

build(repo): Adjust helm chart for Prometheus (#302)

build(repo): Adjust helm chart for Prometheus (#302) #350

name: Build and publish Docker image
on:
workflow_dispatch:
push:
branches:
- main
release:
types:
- published
permissions:
contents: read
packages: write
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build-and-publish-image:
runs-on: ubuntu-latest
if: |
(github.event_name == 'release' && github.event.action == 'published') ||
github.ref == 'refs/heads/main' ||
github.event_name == 'workflow_dispatch' ||
github.event_name == 'pull_request'
steps:
- uses: actions/checkout@v4
- name: Build and push Fuel Core NATS image
uses: ./.github/actions/docker-publish
id: publish
with:
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
image: ghcr.io/fuellabs/fuel-streams-publisher
dockerfile: docker/fuel-streams-publisher.Dockerfile