fix push to docker hub

This commit is contained in:
Wing Lian
2023-05-07 08:52:49 -04:00
parent 47ad3890bc
commit 4a79dabff0

View File

@@ -18,10 +18,6 @@ jobs:
uses: docker/metadata-action@v3
with:
images: winglian/axolotl
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=raw,value={{sha}},enable=${{ github.ref_type != 'tag' }}
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
@@ -34,6 +30,6 @@ jobs:
with:
context: .
file: ./Dockerfile
push: ${{ github.event.base_ref == 'refs/heads/main' && github.ref_type == 'tag' && !startsWith(github.ref, 'refs/tags/v0.')}}
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.metadata.outputs.tags }}
labels: ${{ steps.metadata.outputs.labels }}