Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add a job to merge and create multi-arch image #1278

Merged
merged 1 commit into from
Jan 18, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 28 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,23 +75,47 @@ 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.platform }}
push: true
# dont push until merged
push: false
build-args: |
COMMIT_TAG=${{ github.sha }}
tags: |
fallenbagel/jellyseerr:develop
ghcr.io/${{ env.OWNER_LC }}/jellyseerr:develop
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/${{ 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
Expand Down
Loading