chore: Publish container image only after the release

This commit is contained in:
Anton Babenko 2021-12-13 10:58:27 +01:00
commit 59da4b81d6
2 changed files with 3 additions and 7 deletions

View file

@ -1,14 +1,10 @@
--- name: Publish container image
name: publish container image
on: on:
push: workflow_dispatch:
branches:
- master
release: release:
types: types:
- created - created
workflow_dispatch:
jobs: jobs:
docker: docker:

View file

@ -4,11 +4,11 @@ on:
workflow_dispatch: workflow_dispatch:
push: push:
branches: branches:
- main
- master - master
paths: paths:
- '**/*.py' - '**/*.py'
- '**/*.sh' - '**/*.sh'
- 'Dockerfile'
jobs: jobs:
release: release: