CI: use dedicated deploy environments

This commit is contained in:
Maximilian Hils 2021-04-15 15:45:52 +02:00 committed by GitHub
parent 4659ab8408
commit 44fcd688ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -150,6 +150,7 @@ jobs:
# Separate from everything else because slow.
build-and-deploy-docker:
if: github.repository == 'mitmproxy/mitmproxy' && github.event_name == 'push'
environment: deploy-docker
needs: [test, test-web-ui, build-wheel]
runs-on: ubuntu-latest
env:
@ -171,6 +172,7 @@ jobs:
deploy:
if: github.repository == 'mitmproxy/mitmproxy' && github.event_name == 'push'
environment: deploy
runs-on: ubuntu-latest
needs: [test, test-web-ui, build-wheel, build-binaries]
env: