From c7b02dbe28bf17fcb5669da286bef66bef3a471a Mon Sep 17 00:00:00 2001 From: Christian Krakau-Louis Date: Tue, 11 Feb 2025 19:47:49 +0100 Subject: [PATCH 1/4] Create dependabot.yml --- .github/dependabot.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 00000000..d698d8d0 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,12 @@ +# To get started with Dependabot version updates, you'll need to specify which +# package ecosystems to update and where the package manifests are located. +# Please see the documentation for all configuration options: +# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file + +version: 2 +updates: + - package-ecosystem: "" # See documentation for possible values + directory: "/" # Location of package manifests + schedule: + interval: "weekly" + From 841020b5957cfbf36d84b9e356f03b84b1ffb7be Mon Sep 17 00:00:00 2001 From: Christian Krakau-Louis Date: Tue, 11 Feb 2025 19:56:13 +0100 Subject: [PATCH 2/4] Update docker-build.yaml --- .github/workflows/docker-build.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/docker-build.yaml b/.github/workflows/docker-build.yaml index cc5f4abb..ed463a9a 100644 --- a/.github/workflows/docker-build.yaml +++ b/.github/workflows/docker-build.yaml @@ -25,6 +25,13 @@ jobs: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} + - name: Log in to GitHub Container Registry + uses: docker/login-action@v2 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Build and Push uses: docker/build-push-action@v4 with: @@ -34,3 +41,5 @@ jobs: tags: | christianlouis/document-processor:latest christianlouis/document-processor:${{ github.sha }} + ghcr.io/${{ github.repository_owner }}/document-processor:latest + ghcr.io/${{ github.repository_owner }}/document-processor:${{ github.sha }} From 49f079c8d53edd0076fe1cdaaa1c58202dd2b8bf Mon Sep 17 00:00:00 2001 From: Christian Krakau-Louis Date: Tue, 11 Feb 2025 20:05:04 +0100 Subject: [PATCH 3/4] Update docker-build.yaml --- .github/workflows/docker-build.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/docker-build.yaml b/.github/workflows/docker-build.yaml index ed463a9a..25eabcdd 100644 --- a/.github/workflows/docker-build.yaml +++ b/.github/workflows/docker-build.yaml @@ -1,5 +1,9 @@ name: Build and Push Docker Image +permissions: + contents: read + packages: write + on: push: branches: @@ -35,6 +39,8 @@ jobs: - name: Build and Push uses: docker/build-push-action@v4 with: + # Specify target platforms + platforms: linux/amd64,linux/arm64,linux/arm/v7 context: . file: Dockerfile push: true @@ -43,3 +49,6 @@ jobs: christianlouis/document-processor:${{ github.sha }} ghcr.io/${{ github.repository_owner }}/document-processor:latest ghcr.io/${{ github.repository_owner }}/document-processor:${{ github.sha }} + # Cache options (optional) + cache-from: type=gha + cache-to: type=gha,mode=max From 5c3c8a6e6cd26605ba1d032290873383e6f0d99e Mon Sep 17 00:00:00 2001 From: Christian Krakau-Louis Date: Tue, 11 Feb 2025 20:28:45 +0100 Subject: [PATCH 4/4] Update docker-build.yaml --- .github/workflows/docker-build.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docker-build.yaml b/.github/workflows/docker-build.yaml index 25eabcdd..1f96cb3e 100644 --- a/.github/workflows/docker-build.yaml +++ b/.github/workflows/docker-build.yaml @@ -40,7 +40,7 @@ jobs: uses: docker/build-push-action@v4 with: # Specify target platforms - platforms: linux/amd64,linux/arm64,linux/arm/v7 + platforms: linux/amd64,linux/arm64 context: . file: Dockerfile push: true