From 4b7217eb314497959a4dd1ad9a97f0374470e514 Mon Sep 17 00:00:00 2001 From: Nataly Shrits Date: Sun, 3 Dec 2017 10:58:07 +0200 Subject: [PATCH] upload swagger before publishing images --- CI/codefresh.yml | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/CI/codefresh.yml b/CI/codefresh.yml index 7a978cec0..7db9d76ce 100644 --- a/CI/codefresh.yml +++ b/CI/codefresh.yml @@ -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 @@ -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