Skip to content

Commit

Permalink
ci(docker): Enable latest tag for published images
Browse files Browse the repository at this point in the history
The `latest` tag is widely used and expected in the Docker ecosystem.
Tag the latest builds from the main branch with the tag.

Signed-off-by: Mikko Murto <[email protected]>
  • Loading branch information
mmurto committed Jul 2, 2024
1 parent 6492437 commit cefa1f3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ jobs:
type=raw,value=${{ env.ORT_SERVER_VERSION }}
type=ref,event=branch
type=sha
type=raw,value=latest,enable={{is_default_branch}}
- name: Build ${{ matrix.docker.image }} Image
if: ${{ matrix.docker.dockerfile != '' }}
Expand All @@ -143,6 +144,7 @@ jobs:
type=raw,value=${{ env.ORT_SERVER_VERSION }}
type=ref,event=branch
type=sha
type=raw,value=latest,enable={{is_default_branch}}
- name: Build ${{ matrix.docker.jibImage }} Image
if: ${{ matrix.docker.task != '' }}
Expand Down

0 comments on commit cefa1f3

Please sign in to comment.