Skip to content

v2 - Breaking Change: Requires setup-docker-builder

Latest

Choose a tag to compare

@adityamaru adityamaru released this 07 Aug 19:52
30c7116

⚠️ BREAKING CHANGE

This is a major breaking change from v1. The build-push-action now requires the use of useblacksmith/setup-docker-builder@v1 action before it can be used.

What's Changed

  • Removed: All buildkit setup and stickydisk management functionality has been removed from this action
  • Removed: The action no longer handles buildkit lifecycle management (setup/teardown)
  • New Requirement: You MUST use useblacksmith/setup-docker-builder@v1 before using this action

Migration Guide

Before (v1):

- name: Build and push
  uses: useblacksmith/build-push-action@v1
  with:
    push: true
    tags: user/app:latest

After (v2):

- name: Setup Docker Builder
  uses: useblacksmith/setup-docker-builder@v1

- name: Build and push
  uses: useblacksmith/build-push-action@v2
  with:
    push: true
    tags: user/app:latest

Why This Change?

The separation of concerns provides better modularity:

  • setup-docker-builder handles all buildkit and stickydisk management
  • build-push-action focuses solely on Docker builds and metrics reporting

What This Action Now Does

  • Runs Docker builds against the Blacksmith builder (set up by setup-docker-builder)
  • Reports Docker metrics to the Blacksmith control plane
  • All other Docker build functionality remains the same

⚠️ Attempting to use v2 without first running setup-docker-builder will result in build failures.