Update docker-build.yaml
This commit is contained in:
committed by
GitHub
parent
841020b595
commit
49f079c8d5
@@ -1,5 +1,9 @@
|
|||||||
name: Build and Push Docker Image
|
name: Build and Push Docker Image
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
packages: write
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
@@ -35,6 +39,8 @@ jobs:
|
|||||||
- name: Build and Push
|
- name: Build and Push
|
||||||
uses: docker/build-push-action@v4
|
uses: docker/build-push-action@v4
|
||||||
with:
|
with:
|
||||||
|
# Specify target platforms
|
||||||
|
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
||||||
context: .
|
context: .
|
||||||
file: Dockerfile
|
file: Dockerfile
|
||||||
push: true
|
push: true
|
||||||
@@ -43,3 +49,6 @@ jobs:
|
|||||||
christianlouis/document-processor:${{ github.sha }}
|
christianlouis/document-processor:${{ github.sha }}
|
||||||
ghcr.io/${{ github.repository_owner }}/document-processor:latest
|
ghcr.io/${{ github.repository_owner }}/document-processor:latest
|
||||||
ghcr.io/${{ github.repository_owner }}/document-processor:${{ github.sha }}
|
ghcr.io/${{ github.repository_owner }}/document-processor:${{ github.sha }}
|
||||||
|
# Cache options (optional)
|
||||||
|
cache-from: type=gha
|
||||||
|
cache-to: type=gha,mode=max
|
||||||
|
|||||||
Reference in New Issue
Block a user