Skip to content

Commit

Permalink
feat(docker): Change the image tagging process
Browse files Browse the repository at this point in the history
To avoid confusion over the 'latest' tag always set for daily
builds, these builds will be tagged as 'snapshot' instead
of 'latest', together with the current snapshot version.

The 'latest' docker tag will only occur with the version release
during a push tag event.

Signed-off-by: Helio Chissini de Castro <[email protected]>
  • Loading branch information
heliocastro authored and tsteenbe committed Oct 12, 2023
1 parent 2f5bd6e commit 889d481
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/docker-ort-runtime-ext.yml
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,10 @@ jobs:
${{ env.REGISTRY }}/${{ github.repository_owner }}/ort-extended
tags: |
type=schedule,pattern={{date 'YYYYMMDD'}}
type=schedule,pattern=snapshot
type=pep440,pattern={{version}}
type=raw,value=${{ env.ORT_VERSION }}
type=ref,event=tag
- name: Build ORT extended runtime image
uses: docker/build-push-action@v5
Expand All @@ -189,7 +191,6 @@ jobs:
load: false
tags: |
${{ steps.meta-ort.outputs.tags }}
${{ env.REGISTRY }}/${{ github.repository_owner }}/ort-extended:latest
labels: ${{ steps.meta.outputs.labels }}
build-contexts: |
ort=docker-image://${{ env.REGISTRY }}/${{ github.repository_owner }}/ort:${{ env.ORT_VERSION }}
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/docker-ort-runtime.yml
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,10 @@ jobs:
${{ env.REGISTRY }}/${{ github.repository_owner }}/ort
tags: |
type=schedule,pattern={{date 'YYYYMMDD'}}
type=schedule,pattern=snapshot
type=pep440,pattern={{version}}
type=raw,value=${{ env.ORT_VERSION }}
type=ref,event=tag
- name: Build ORT runtime image
uses: docker/build-push-action@v5
Expand All @@ -218,7 +220,6 @@ jobs:
ORT_VERSION=${{ env.ORT_VERSION }}
tags: |
${{ steps.meta-ort.outputs.tags }}
${{ env.REGISTRY }}/${{ github.repository_owner }}/ort:latest
labels: ${{ steps.meta.outputs.labels }}
build-contexts: |
base=docker-image://${{ env.REGISTRY }}/${{ github.repository }}/base:latest
Expand Down

0 comments on commit 889d481

Please sign in to comment.