Skip to content

Commit 7146ce5

Browse files
authored
feat(ci): use blacksmith for ci (#1454)
* feat(ci): use blacksmith for ci * consolidate ecr + ghcr builds for linux/amd64
1 parent 1b7e883 commit 7146ce5

File tree

11 files changed

+293
-361
lines changed

11 files changed

+293
-361
lines changed

.github/workflows/build-ecr.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- dockerfile: ./docker/realtime.Dockerfile
2424
ecr_repo_secret: ECR_REALTIME
2525
service_type: monitoring
26-
runs-on: ubuntu-latest
26+
runs-on: blacksmith-4vcpu-ubuntu-2404
2727

2828
steps:
2929
- name: Checkout repository
@@ -46,7 +46,7 @@ jobs:
4646
password: ${{ secrets.DOCKERHUB_TOKEN }}
4747

4848
- name: Set up Docker Buildx
49-
uses: docker/setup-buildx-action@v3
49+
uses: useblacksmith/setup-docker-builder@v1
5050

5151
- name: Generate image tags
5252
id: meta
@@ -67,21 +67,19 @@ jobs:
6767
echo "full_image=$FULL_IMAGE" >> $GITHUB_OUTPUT
6868
6969
- name: Build and push Docker image
70-
uses: docker/build-push-action@v6
70+
uses: useblacksmith/build-push-action@v2
7171
with:
7272
context: .
7373
file: ${{ matrix.dockerfile }}
7474
push: true
7575
tags: ${{ steps.meta.outputs.full_image }}
7676
platforms: linux/amd64
77-
cache-from: type=gha,scope=build-ecr-${{ matrix.service_type }}
78-
cache-to: type=gha,mode=max,scope=build-ecr-${{ matrix.service_type }}
7977
provenance: false
8078
sbom: false
8179

8280
update-ecs-services:
8381
needs: build-and-push-ecr
84-
runs-on: ubuntu-latest
82+
runs-on: blacksmith-4vcpu-ubuntu-2404
8583
strategy:
8684
fail-fast: false
8785
matrix:

.github/workflows/build-ghcr-build.yml

Lines changed: 0 additions & 84 deletions
This file was deleted.

.github/workflows/build-ghcr-push.yml

Lines changed: 0 additions & 149 deletions
This file was deleted.

0 commit comments

Comments
 (0)