chore(release): add latest tag only on release tags (#766)
This commit is contained in:
		
							parent
							
								
									d276cd2902
								
							
						
					
					
						commit
						10d640b211
					
				|  | @ -56,11 +56,12 @@ jobs: | |||
|         uses: docker/metadata-action@v4 | ||||
|         with: | ||||
|           images: ghcr.io/${{ github.repository }}${{ matrix.image.suffix }} | ||||
|           flavor: latest=true | ||||
|           flavor: latest=false | ||||
|           tags: | | ||||
|             type=raw,value=canary,enable=${{ github.ref == format('refs/heads/{0}', 'main') }} | ||||
|             type=ref,event=pr | ||||
|             type=semver,pattern={{raw}} | ||||
|             type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/') }} | ||||
| 
 | ||||
|       - name: Login to GitHub Container Registry | ||||
|         uses: docker/login-action@v1 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue