Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
christianlouis committed Feb 11, 2025
2 parents 08f9c70 + 8e6c8f7 commit 6c56e6d
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -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"

18 changes: 18 additions & 0 deletions .github/workflows/docker-build.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Build and Push Docker Image

permissions:
contents: read
packages: write

on:
push:
branches:
Expand All @@ -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

0 comments on commit 6c56e6d

Please sign in to comment.