winglian commited on
Commit
4a79dab
1 Parent(s): 47ad389

fix push to docker hub

Browse files
Files changed (1) hide show
  1. .github/workflows/main.yml +1 -5
.github/workflows/main.yml CHANGED
@@ -18,10 +18,6 @@ jobs:
18
  uses: docker/metadata-action@v3
19
  with:
20
  images: winglian/axolotl
21
- tags: |
22
- type=semver,pattern={{version}}
23
- type=semver,pattern={{major}}.{{minor}}
24
- type=raw,value={{sha}},enable=${{ github.ref_type != 'tag' }}
25
  - name: Login to Docker Hub
26
  uses: docker/login-action@v2
27
  with:
@@ -34,6 +30,6 @@ jobs:
34
  with:
35
  context: .
36
  file: ./Dockerfile
37
- push: ${{ github.event.base_ref == 'refs/heads/main' && github.ref_type == 'tag' && !startsWith(github.ref, 'refs/tags/v0.')}}
38
  tags: ${{ steps.metadata.outputs.tags }}
39
  labels: ${{ steps.metadata.outputs.labels }}
 
18
  uses: docker/metadata-action@v3
19
  with:
20
  images: winglian/axolotl
 
 
 
 
21
  - name: Login to Docker Hub
22
  uses: docker/login-action@v2
23
  with:
 
30
  with:
31
  context: .
32
  file: ./Dockerfile
33
+ push: ${{ github.event_name != 'pull_request' }}
34
  tags: ${{ steps.metadata.outputs.tags }}
35
  labels: ${{ steps.metadata.outputs.labels }}