Skip to content

fix(ci): only run build on branch push, not tags #8

fix(ci): only run build on branch push, not tags

fix(ci): only run build on branch push, not tags #8

Workflow file for this run

name: Image
on:
push:
branches:
- '*'
jobs:
docker-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: |
rornic/starling-exporter
tags: |
type=sha
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build
uses: docker/build-push-action@v5
with:
push: false
platforms: linux/amd64,linux/arm64,linux/arm/v6
context: .
tags: ${{ steps.meta.outputs.tags }}
cache-from: type=gha
cache-to: type=gha,mode=max