Skip to content

Commit

Permalink
Update docker-build.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
christianlouis authored Feb 11, 2025
1 parent 09f3f1b commit b3c405f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 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 Down Expand Up @@ -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
Expand All @@ -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

0 comments on commit b3c405f

Please sign in to comment.