diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8cc6b02046992c571796af71ebb7e5e556ff0d38..34a991fa9d70d10a01304735d1bf43155858e25b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -52,13 +52,13 @@ deploy-to-staging: - mkdir -p ~/.ssh - echo "$SSH_PRIVATE_KEY" >> ~/.ssh/id_dsa - chmod 600 ~/.ssh/id_dsa - - cp "$SSH_KNOWN_HOSTS" ~/.ssh/known_hosts - - chmod 644 ~/.ssh/known_hosts - #- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config + #- cp "$SSH_KNOWN_HOSTS" ~/.ssh/known_hosts + #- chmod 644 ~/.ssh/known_hosts + - echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config - './mvnw $MAVEN_POM_WITH_MODELS $MAVEN_CLI_OPTS $MAVEN_OPTS package -DskipTests' - WAR_FILE=$(find target -maxdepth 1 -type f -name "*.war" | sort -n | tail -1) - if [ -z "$WAR_FILE" ]; then echo "No WAR files found in target directory"; exit 1; fi - - echo "Deploying $WAR_FILE to the server" + - echo "Deploying $WAR_FILE to $SERVER_IP" - rsync -rav --delete "$WAR_FILE" $SERVER_USER@$SERVER_IP:/home/deployer/ tags: - vips-java