From 4849bafce3150ffcb25900dfc8bdc3eb2852044f Mon Sep 17 00:00:00 2001 From: Aaron Riedel Date: Sun, 6 Mar 2022 10:36:37 +0000 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7568698..6158063 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -31,8 +31,9 @@ docker-build: - if: $CI_COMMIT_BRANCH exists: - Dockerfile - - if: ($CI_COMMIT_BRANCH == "master" || $CI_COMMIT_BRANCH == "dev") - when: always + only: + - master + - dev before_script: - apt-get update -qq @@ -47,7 +48,7 @@ before_script: deploy_staging: type: deploy script: - - ssh $SSH_SERVER "cd /root && docker-compose up -d shbot && exit" + - ssh $SSH_SERVER "cd /root && docker-compose up -d bot && exit" only: - master \ No newline at end of file