Skip to content

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

.github/workflows: Migrate workflows to Blacksmith runners (#6199)

blacksmith-sh[bot]268c38d71578
diff --git a/.github/workflows/build-private-images-ghcr.yml b/.github/workflows/build-private-images-ghcr.yml
index 66e53bc0ae..1c0ce1f3a9 100644
--- a/.github/workflows/build-private-images-ghcr.yml
+++ b/.github/workflows/build-private-images-ghcr.yml
@@ -14,7 +14,7 @@ concurrency:
jobs:
build:
if: ${{ github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'preview') }}
- runs-on: ubuntu-latest
+ runs-on: blacksmith-4vcpu-ubuntu-2404
permissions:
contents: read
@@ -34,8 +34,8 @@ jobs:
type=ref,event=tag
type=sha
- - name: Set up Docker Buildx
- uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
+ - name: Setup Blacksmith Builder
+ uses: useblacksmith/setup-docker-builder@ef12d5b165b596e3aa44ea8198d8fde563eab402 # v1.4.0
- name: Login to GitHub Container Registry
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0
@@ -46,13 +46,11 @@ jobs:
- name: Build and push
id: docker_build
- uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6.19.2
+ uses: useblacksmith/build-push-action@30c71162f16ea2c27c3e21523255d209b8b538c1 # v2
with:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- cache-from: type=gha
- cache-to: type=gha,mode=max
build-args: |
MIX_ENV=prod
BUILD_METADATA=${{ steps.meta.outputs.json }}
diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml
index 8c82c2a9b8..4fdff4849e 100644
--- a/.github/workflows/codespell.yml
+++ b/.github/workflows/codespell.yml
@@ -15,4 +15,4 @@ jobs:
with:
check_filenames: true
ignore_words_file: .codespellignore
- path: lib test extra
+ path: lib test extra
diff --git a/.github/workflows/elixir.yml b/.github/workflows/elixir.yml
index 94187aff28..7dc3617c76 100644
--- a/.github/workflows/elixir.yml
+++ b/.github/workflows/elixir.yml
@@ -17,7 +17,7 @@ env:
jobs:
build:
name: "Build and test (${{ matrix.mix_env }}, ${{ matrix.postgres_image }})"
- runs-on: ubuntu-latest
+ runs-on: blacksmith-4vcpu-ubuntu-2404
strategy:
matrix:
mix_env: ["test", "ce_test"]
@@ -115,7 +115,7 @@ jobs:
e2e:
name: End-to-end tests
- runs-on: ubuntu-latest
+ runs-on: blacksmith-4vcpu-ubuntu-2404
timeout-minutes: 15
env:
MIX_ENV: e2e_test
@@ -235,7 +235,7 @@ jobs:
if: ${{ !cancelled() }}
needs: [e2e]
timeout-minutes: 15
- runs-on: ubuntu-latest
+ runs-on: blacksmith-4vcpu-ubuntu-2404
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
@@ -261,7 +261,7 @@ jobs:
name: Static checks (format, credo, dialyzer)
env:
MIX_ENV: test
- runs-on: ubuntu-latest
+ runs-on: blacksmith-4vcpu-ubuntu-2404
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
diff --git a/.github/workflows/node.yml b/.github/workflows/node.yml
index 323934633e..c416357f7f 100644
--- a/.github/workflows/node.yml
+++ b/.github/workflows/node.yml
@@ -13,7 +13,7 @@ concurrency:
jobs:
build:
name: Build and test
- runs-on: ubuntu-latest
+ runs-on: blacksmith-4vcpu-ubuntu-2404
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml
index 9f73c53274..f2dec49e6d 100644
--- a/.github/workflows/publish-docs.yml
+++ b/.github/workflows/publish-docs.yml
@@ -23,7 +23,7 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
-
+
- name: Read .tool-versions
uses: marocchino/tool-versions-action@18a164fa2b0db1cc1edf7305fcb17ace36d1c306 # v1.2.0
id: versions
@@ -46,7 +46,7 @@ jobs:
- name: Install Mix dependencies
run: mix deps.get
-
+
- name: Build documentation
run: mix docs
diff --git a/.github/workflows/tracker-script-npm-release.yml b/.github/workflows/tracker-script-npm-release.yml
index 5602095014..c8abec8437 100644
--- a/.github/workflows/tracker-script-npm-release.yml
+++ b/.github/workflows/tracker-script-npm-release.yml
@@ -7,7 +7,7 @@ on:
jobs:
tracker-release-npm:
- runs-on: ubuntu-latest
+ runs-on: blacksmith-4vcpu-ubuntu-2404
permissions:
pull-requests: read
contents: read
diff --git a/.github/workflows/tracker-script-update.yml b/.github/workflows/tracker-script-update.yml
index fc9f589cb9..b5ebd8beb6 100644
--- a/.github/workflows/tracker-script-update.yml
+++ b/.github/workflows/tracker-script-update.yml
@@ -9,7 +9,7 @@ on:
jobs:
tracker-script-update:
- runs-on: ubuntu-latest
+ runs-on: blacksmith-4vcpu-ubuntu-2404
permissions:
pull-requests: write
contents: read
diff --git a/.github/workflows/tracker.yml b/.github/workflows/tracker.yml
index af929babfd..3f77d18704 100644
--- a/.github/workflows/tracker.yml
+++ b/.github/workflows/tracker.yml
@@ -13,7 +13,7 @@ concurrency:
jobs:
test:
timeout-minutes: 15
- runs-on: ubuntu-latest
+ runs-on: blacksmith-4vcpu-ubuntu-2404
strategy:
fail-fast: false
matrix:
@@ -58,7 +58,7 @@ jobs:
if: ${{ !cancelled() }}
needs: [test]
timeout-minutes: 5
- runs-on: ubuntu-latest
+ runs-on: blacksmith-4vcpu-ubuntu-2404
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0