Revert "ci: Change docker_release.yml workflow to run after successful PyPi release (#4293)" (#4513)

This reverts commit 6e241262ada9e59359d653a779246d2ad03c1223.
This commit is contained in:
Silvano Cerza 2023-03-28 15:28:15 +02:00 committed by GitHub
parent 7c9f719496
commit f4fb8dd946
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 7 deletions

View File

@ -1,13 +1,12 @@
name: Docker image release
on:
workflow_dispatch:
push:
branches:
- main
workflow_run:
workflows: [Project release on PyPi]
types:
- completed
tags:
- "v[0-9].[0-9]+.[0-9]+*"
env:
DOCKER_REPO_NAME: deepset/haystack
@ -15,8 +14,6 @@ env:
jobs:
build-and-push:
name: Build ${{ matrix.target }} image for ${{ matrix.platform }}
# We need this to run only when we're merging in main or the PyPi release was successful
if: ${{ github.event_name == 'push' || github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
strategy:
matrix:

View File

@ -1,4 +1,3 @@
# If you change this name also do it in docker_release.yml
name: Project release on PyPi
on: