Compare commits
4 Commits
ci-arm64-s
...
ci-merged-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f3e8cc3546 | ||
|
|
a8f84d4f74 | ||
|
|
88e96fa163 | ||
|
|
2d814c1416 |
47
.github/workflows/ci.yml
vendored
47
.github/workflows/ci.yml
vendored
@@ -12,7 +12,7 @@ jobs:
|
||||
test:
|
||||
name: Lint & Test Build
|
||||
if: github.event_name == 'pull_request'
|
||||
runs-on: ubuntu-22.04
|
||||
runs-on: ubuntu-24.04
|
||||
container: node:22-alpine
|
||||
steps:
|
||||
- name: Checkout
|
||||
@@ -48,7 +48,11 @@ jobs:
|
||||
if: github.ref == 'refs/heads/develop' && !contains(github.event.head_commit.message, '[skip ci]')
|
||||
strategy:
|
||||
matrix:
|
||||
runner: [ubuntu-22.04, ubuntu-22.04-arm64]
|
||||
include:
|
||||
- runner: ubuntu-24.04
|
||||
platform: linux/amd64
|
||||
- runner: ubuntu-24.04-arm
|
||||
platform: linux/arm64
|
||||
runs-on: ${{ matrix.runner }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
@@ -71,27 +75,52 @@ jobs:
|
||||
echo "OWNER_LC=${OWNER,,}" >>${GITHUB_ENV}
|
||||
env:
|
||||
OWNER: ${{ github.repository_owner }}
|
||||
- name: Build and push
|
||||
- name: Build architecture specific images
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
file: ./Dockerfile
|
||||
# platforms: linux/amd64,linux/arm64
|
||||
platforms: ${{ matrix.runner == 'ubuntu-22.04' && 'linux/amd64' || 'linux/arm64' }}
|
||||
push: true
|
||||
platforms: ${{ matrix.platform }}
|
||||
# dont push until merged
|
||||
push: false
|
||||
build-args: |
|
||||
COMMIT_TAG=${{ github.sha }}
|
||||
tags: |
|
||||
fallenbagel/jellyseerr:develop-${{ matrix.platform }}
|
||||
ghcr.io/${{ env.OWNER_LC }}/jellyseerr:develop-${{ matrix.platform }}
|
||||
cache-from: type=gha,scope=${{ matrix.platform }}
|
||||
cache-to: type=gha,mode=max,scope=${{ matrix.platform }}
|
||||
provenance: false
|
||||
|
||||
create_manifest:
|
||||
name: Create Multi-Architecture Image
|
||||
needs: build_and_push
|
||||
runs-on: ubuntu-24.04
|
||||
steps:
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
- name: Create and Push Multi-Architecture Image
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
images: |
|
||||
fallenbagel/jellyseerr:develop-linux-amd64
|
||||
fallenbagel/jellyseerr:develop-linux-arm64
|
||||
ghcr.io/${{ github.repository_owner }}/jellyseerr:develop-linux-amd64
|
||||
ghcr.io/${{ github.repository_owner }}/jellyseerr:develop-linux-arm64
|
||||
target: |
|
||||
fallenbagel/jellyseerr:develop
|
||||
ghcr.io/${{ env.OWNER_LC }}/jellyseerr:develop
|
||||
cache-from: type=gha
|
||||
cache-to: type=gha,mode=max
|
||||
ghcr.io/${{ github.repository_owner }}/jellyseerr:develop
|
||||
- name: Inspect Manifest
|
||||
run: |
|
||||
docker buildx imagetools inspect fallenbagel/jellyseerr:develop
|
||||
docker buildx imagetools inspect ghcr.io/${{ github.repository_owner }}/jellyseerr:develop
|
||||
|
||||
discord:
|
||||
name: Send Discord Notification
|
||||
needs: build_and_push
|
||||
if: always() && github.event_name != 'pull_request' && !contains(github.event.head_commit.message, '[skip ci]')
|
||||
runs-on: ubuntu-22.04
|
||||
runs-on: ubuntu-24.04
|
||||
steps:
|
||||
- name: Get Build Job Status
|
||||
uses: technote-space/workflow-conclusion-action@v3
|
||||
|
||||
Reference in New Issue
Block a user