Skip to content

Commit

Permalink
Push on tag
Browse files Browse the repository at this point in the history
  • Loading branch information
OskarLiew committed Jan 16, 2025
1 parent 098180b commit 9e8e212
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
push:
branches:
- main
tags:
- "**"


env:
IMAGE_ID: ghcr.io/${{ github.repository_owner }}/docling-inference
Expand All @@ -29,7 +32,10 @@ jobs:
with:
context: .
push: true
tags: ${{ env.IMAGE_ID }}:latest,${{ env.IMAGE_ID }}:${{ github.sha }}
tags: |
${{ env.IMAGE_ID }}:latest
${{ env.IMAGE_ID }}:${{ github.sha }}
${{ env.IMAGE_ID }}:${{ github.ref_name }}
cache-from: type=registry,ref=${{ env.IMAGE_ID }}:buildcache
cache-to: type=registry,ref=${{ env.IMAGE_ID }}:buildcache,mode=max

Expand All @@ -54,6 +60,9 @@ jobs:
context: .
push: true
file: Dockerfile.cpu
tags: ${{ env.IMAGE_ID }}:cpu-latest,${{ env.IMAGE_ID }}:cpu-${{ github.sha }}
tags: |
${{ env.IMAGE_ID }}:cpu-latest
${{ env.IMAGE_ID }}:cpu-${{ github.sha }}
${{ env.IMAGE_ID }}:cpu-${{ github.ref_name }}
cache-from: type=registry,ref=${{ env.IMAGE_ID }}:cpu-buildcache
cache-to: type=registry,ref=${{ env.IMAGE_ID }}:cpu-buildcache,mode=max

0 comments on commit 9e8e212

Please sign in to comment.