fix if statement for docker image

This commit is contained in:
James Ravenscroft 2023-04-14 08:44:50 +01:00
parent f9b4c1d722
commit 1be3d2d176

View File

@ -49,10 +49,10 @@ jobs:
- name: Build and push release
uses: docker/build-push-action@v4
if: (!startsWith(github.ref, 'refs/tags/'))
if: startsWith(github.ref, 'refs/tags/')
with:
push: true
tags: ghcr.io/ravenscroftj/turbopilot:${{ github.release }}
tags: ghcr.io/ravenscroftj/turbopilot:${{ github.ref }}
context: ${{github.workspace}}
platforms: linux/amd64,linux/arm64