Skip to content

Commit

Permalink
upload swagger before publishing images
Browse files Browse the repository at this point in the history
  • Loading branch information
nataly87s committed Dec 3, 2017
1 parent fe07224 commit 4b7217e
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions CI/codefresh.yml
Expand Up @@ -184,6 +184,20 @@ steps:
volumes:
- ${{CF_VOLUME}}:/repo

Swagger:
title: Upload swagger
when:
condition:
all:
executeForMasterBranch: "'${{CF_BRANCH}}' == 'master'"
executeForNewVersions: "'${{TWEEK_DOCKER_TAG_API}}' != 'latest'"
image: node:slim
working_dir: ./CI
environment:
- UPDATE_SWAGGER_SECRET=${{UPDATE_SWAGGER_SECRET}}
commands:
- ./update_swagger.sh api $TWEEK_DOCKER_TAG_API ./api-swagger.json

PushApiImageMaster:
type: push
title: Push Tweek Api - lastest
Expand Down Expand Up @@ -240,17 +254,3 @@ steps:
only:
- master
candidate: ${{BuildingGitRepository}}

Swagger:
title: Upload swagger
when:
condition:
all:
executeForMasterBranch: "'${{CF_BRANCH}}' == 'master'"
executeForNewVersions: "'${{TWEEK_DOCKER_TAG_API}}' != 'latest'"
image: node:slim
working_dir: ./CI
environment:
- UPDATE_SWAGGER_SECRET=${{UPDATE_SWAGGER_SECRET}}
commands:
- ./update_swagger.sh api $TWEEK_DOCKER_TAG_API ./api-swagger.json

0 comments on commit 4b7217e

Please sign in to comment.