From 4a79dabff01926dfcbfcf55f576a1f1f4a563795 Mon Sep 17 00:00:00 2001 From: Wing Lian Date: Sun, 7 May 2023 08:52:49 -0400 Subject: [PATCH] fix push to docker hub --- .github/workflows/main.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c20186f76..123e25cd3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 }}