Autodeploydev (#200)

* fix: autodeploy

* added version condition
This commit is contained in:
Christian Jakob
2020-06-10 12:38:13 +02:00
committed by GitHub
parent 207842be91
commit 654bf09ed1
3 changed files with 86 additions and 0 deletions

View File

@@ -213,3 +213,14 @@ jobs:
- name: Docker Push Latest
run: docker push $REGISTRY/$GITHUB_REPOSITORY/$IMAGE:latest
if: env.CAOS_NEXT_VERSION != ''
- name: Deploy DEV environment
env:
TARGET_ENVIRONMENT: "dev"
GIT_OPSREPO_DEPLOYTOKEN: ${{secrets.GIT_OPSREPO_DEPLOYTOKEN}}
run: |
source ./.github/scripts/githelper.sh
setup_git
checkout_project
change_image_version
upload_files
if: env.CAOS_NEXT_VERSION != ''