fix(ci): split worker and API image builds into parallel jobs
Worker and API builds now run independently so a failure in one doesn't block the other. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -39,8 +39,8 @@ jobs:
|
|||||||
- name: Lint
|
- name: Lint
|
||||||
run: pnpm biome
|
run: pnpm biome
|
||||||
|
|
||||||
build-images:
|
build-worker:
|
||||||
name: Build & push images
|
name: Build & push worker image
|
||||||
needs: check
|
needs: check
|
||||||
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
||||||
runs-on: runners-farhoodliquor
|
runs-on: runners-farhoodliquor
|
||||||
@@ -71,6 +71,29 @@ jobs:
|
|||||||
ghcr.io/farhoodliquor/shannon:latest
|
ghcr.io/farhoodliquor/shannon:latest
|
||||||
ghcr.io/farhoodliquor/shannon:sha-${{ github.sha }}
|
ghcr.io/farhoodliquor/shannon:sha-${{ github.sha }}
|
||||||
|
|
||||||
|
build-api:
|
||||||
|
name: Build & push API image
|
||||||
|
needs: check
|
||||||
|
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
||||||
|
runs-on: runners-farhoodliquor
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
packages: write
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4.0.0
|
||||||
|
|
||||||
|
- name: Log in to GHCR
|
||||||
|
uses: docker/login-action@b45d80f862d83dbcd57f89517bcf500b2ab88fb2 # v4.0.0
|
||||||
|
with:
|
||||||
|
registry: ghcr.io
|
||||||
|
username: ${{ github.actor }}
|
||||||
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Build and push API image
|
- name: Build and push API image
|
||||||
uses: docker/build-push-action@d08e5c354a6adb9ed34480a06d141179aa583294 # v7.0.0
|
uses: docker/build-push-action@d08e5c354a6adb9ed34480a06d141179aa583294 # v7.0.0
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user