Skip to content

Commit 22bff16

Browse files
committed
Separate stages for GH, PyPI and DockerHub
Signed-off-by: Ivan Kanakarakis <[email protected]>
1 parent c6bb74a commit 22bff16

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

.travis.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,18 @@ jobs:
2323
- python: 3.9-dev
2424
- python: pypy3
2525

26-
- stage: Deploy latest version
26+
- stage: Deploy latest image on DockerHub
2727
script: skip
28+
if: branch = master
2829
deploy:
2930
- provider: script
3031
script: scripts/travis_create_docker_image_branch.sh
3132
on:
3233
repo: IdentityPython/SATOSA
3334
branch: master
3435

35-
- stage: Deploy new release
36+
- stage: Deploy new release on GitHub
37+
if: tag IS present
3638
script: skip
3739
deploy:
3840
- provider: releases
@@ -41,6 +43,11 @@ jobs:
4143
on:
4244
repo: IdentityPython/SATOSA
4345
tags: true
46+
47+
- stage: Deploy new release on PyPI
48+
if: tag IS present
49+
script: skip
50+
deploy:
4451
- provider: pypi
4552
distributions: sdist bdist_wheel
4653
user: Lundberg
@@ -49,12 +56,16 @@ jobs:
4956
on:
5057
repo: IdentityPython/SATOSA
5158
tags: true
59+
60+
- stage: Deploy new release on DockerHub
61+
if: tag IS present
62+
script: skip
63+
deploy:
5264
- provider: script
5365
script: scripts/travis_create_docker_image_tag.sh
5466
on:
5567
repo: IdentityPython/SATOSA
5668
tags: true
57-
if: tag IS present
5869

5970
env:
6071
global:

0 commit comments

Comments
 (0)