mirror of
https://github.com/aljazceru/nutshell.git
synced 2025-12-25 12:34:22 +01:00
[CI] prevent pypi upload on pre-releases (#520)
* prevent pypi upload on pre-releases * only on release
This commit is contained in:
4
.github/workflows/docker.yaml
vendored
4
.github/workflows/docker.yaml
vendored
@@ -2,7 +2,7 @@ name: Docker Build
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
types: [released]
|
||||
|
||||
jobs:
|
||||
build-and-push:
|
||||
@@ -42,7 +42,7 @@ jobs:
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
push: ${{ github.event_name == 'release' }}
|
||||
push: ${{ github.event_name == 'release' && github.event.action == 'released' }}
|
||||
tags: ${{ secrets.DOCKER_USERNAME }}/${{ github.event.repository.name }}:${{ steps.get_tag.outputs.tag }}
|
||||
platforms: linux/amd64,linux/arm64
|
||||
cache-from: type=local,src=/tmp/.buildx-cache
|
||||
|
||||
Reference in New Issue
Block a user