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" + diff --git a/.github/workflows/docker-build.yaml b/.github/workflows/docker-build.yaml index cc5f4abb..1f96cb3e 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: @@ -25,12 +29,26 @@ 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: + # Specify target platforms + platforms: linux/amd64,linux/arm64 context: . file: Dockerfile push: true 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 }} + # Cache options (optional) + cache-from: type=gha + cache-to: type=gha,mode=max