Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 8 additions & 12 deletions .github/workflows/docker-launchql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
runner: ubuntu-latest # x86_64
- platform: linux/arm64
arch: arm64
runner: ubuntu-24.04-arm # native arm
runner: blacksmith-4vcpu-ubuntu-2404-arm # native arm
runs-on: ${{ matrix.runner }}

permissions:
Expand All @@ -44,8 +44,8 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Setup Blacksmith Builder
uses: useblacksmith/setup-docker-builder@v1

- name: Login to GHCR
if: github.event_name != 'pull_request'
Expand All @@ -72,32 +72,28 @@ jobs:
# do a quick amd64-only build without pushing.
- name: Build (no push, PR only)
if: github.event_name == 'pull_request' && matrix.platform == 'linux/amd64'
uses: docker/build-push-action@v5
uses: useblacksmith/build-push-action@v2
with:
context: .
file: ./Dockerfile
platforms: linux/amd64
push: false
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max

# For non-PR events, build one architecture per runner
# and push images by digest. These digests are later
# assembled into a multi-arch manifest.
- name: Build & push by digest
if: github.event_name != 'pull_request'
id: build
uses: docker/build-push-action@v6
uses: useblacksmith/build-push-action@v2
with:
context: .
file: ./Dockerfile
platforms: ${{ matrix.platform }}
labels: ${{ steps.meta.outputs.labels }}
outputs: type=image,name=${{ env.REPO }}/${{ env.IMAGE_NAME }},push-by-digest=true,push=true
cache-from: type=gha
cache-to: type=gha,mode=max

- name: Export digest
if: github.event_name != 'pull_request'
Expand All @@ -118,7 +114,7 @@ jobs:
# multi-arch manifest for each tag.
publish-constructive-manifest:
if: github.event_name != 'pull_request'
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2404
needs: build-push-constructive

permissions:
Expand All @@ -130,8 +126,8 @@ jobs:
IMAGE_NAME: constructive

steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Setup Blacksmith Builder
uses: useblacksmith/setup-docker-builder@v1

- name: Login to GHCR
uses: docker/login-action@v3
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ concurrency:
jobs:
build-push:
if: github.event_name != 'pull_request' || !github.event.pull_request.draft
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2404

permissions:
contents: read
Expand All @@ -67,8 +67,8 @@ jobs:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Setup Blacksmith Builder
uses: useblacksmith/setup-docker-builder@v1

- name: Login to GHCR
if: github.event_name != 'pull_request'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/run-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ concurrency:

jobs:
constructive-tests:
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2404
container: pyramation/node-sqitch:20.12.0

strategy:
Expand Down