Skip to content

Self-hosted, plugin-based server management.

Migrate workflows to Blacksmith (#421)

blacksmith-sh[bot]6dca33efbae9
diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml
index 0dc20d056..bab6cd4f0 100644
--- a/.github/workflows/docker-image.yml
+++ b/.github/workflows/docker-image.yml
@@ -18,7 +18,7 @@ on:
jobs:
build:
- runs-on: ubuntu-latest
+ runs-on: blacksmith-4vcpu-ubuntu-2404
steps:
- name: Checkout repository
uses: actions/checkout@v5
@@ -30,13 +30,8 @@ jobs:
with:
platforms: arm64
- - name: Set up Docker Buildx
- uses: docker/setup-buildx-action@v3
- with:
- platforms: linux/amd64,linux/arm64
- driver-opts: |
- image=moby/buildkit:master
- network=host
+ - name: Setup Blacksmith Builder
+ uses: useblacksmith/setup-docker-builder@v1
- name: Cache npm dependencies
uses: actions/cache@v4
@@ -99,7 +94,7 @@ jobs:
fi
- name: Build and Push Multi-Arch Docker Image
- uses: docker/build-push-action@v6
+ uses: useblacksmith/build-push-action@v2
with:
context: .
file: ./docker/Dockerfile
@@ -109,8 +104,6 @@ jobs:
labels: |
org.opencontainers.image.source=https://github.com/${{ github.repository }}
org.opencontainers.image.revision=${{ github.sha }}
- cache-from: type=local,src=/tmp/.buildx-cache
- cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max
build-args: |
BUILDKIT_INLINE_CACHE=1
BUILDKIT_CONTEXT_KEEP_GIT_DIR=1
diff --git a/.github/workflows/electron-build.yml b/.github/workflows/electron-build.yml
index a9f5aa838..63de08f75 100644
--- a/.github/workflows/electron-build.yml
+++ b/.github/workflows/electron-build.yml
@@ -58,7 +58,7 @@ jobs:
retention-days: 30
build-linux:
- runs-on: ubuntu-latest
+ runs-on: blacksmith-4vcpu-ubuntu-2404
if: github.event.inputs.build_type == 'all' || github.event.inputs.build_type == 'linux' || github.event.inputs.build_type == ''
steps: