Skip to content

kbsync: keep kbw image properties and 'Missing Image' blocks in step … #4

kbsync: keep kbw image properties and 'Missing Image' blocks in step …

kbsync: keep kbw image properties and 'Missing Image' blocks in step … #4

Workflow file for this run

name: Build and push
on:
push:
branches: [main]
tags: ['v*']
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- name: Log in to Docker Hub
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USER }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
- id: meta
uses: docker/metadata-action@v5
with:
images: virtualflybrain/vfb-image-derivatives
tags: |
type=ref,event=tag
type=sha,prefix=,format=short
type=raw,value=latest,enable={{is_default_branch}}
- uses: docker/build-push-action@v6
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
cache-from: type=gha
cache-to: type=gha,mode=max