don't update 'latest' for incremental builds - only for actual version releases

This commit is contained in:
James Ravenscroft 2023-05-08 10:35:15 +01:00
parent 5c54d770c4
commit 92c558d0b3

View File

@ -42,7 +42,7 @@ jobs:
if: (!startsWith(github.ref, 'refs/tags/'))
with:
push: true
tags: ghcr.io/ravenscroftj/turbopilot:latest
tags: ghcr.io/ravenscroftj/turbopilot:nightly-${{ github.sha }}
context: ${{github.workspace}}
platforms: linux/amd64,linux/arm64
@ -52,7 +52,7 @@ jobs:
if: startsWith(github.ref, 'refs/tags/')
with:
push: true
tags: ghcr.io/ravenscroftj/turbopilot:${{ github.ref_name }}
tags: ghcr.io/ravenscroftj/turbopilot:${{ github.ref_name }}, ghcr.io/ravenscroftj/turbopilot:latest
context: ${{github.workspace}}
platforms: linux/amd64,linux/arm64