Skip to content
Snippets Groups Projects
Commit 187a937e authored by Lene Wasskog's avatar Lene Wasskog
Browse files

build: Debug key verification problems

parent 64c53b02
No related branches found
No related tags found
1 merge request!7Gnuaffero
Pipeline #2181 failed
...@@ -52,13 +52,13 @@ deploy-to-staging: ...@@ -52,13 +52,13 @@ deploy-to-staging:
- mkdir -p ~/.ssh - mkdir -p ~/.ssh
- echo "$SSH_PRIVATE_KEY" >> ~/.ssh/id_dsa - echo "$SSH_PRIVATE_KEY" >> ~/.ssh/id_dsa
- chmod 600 ~/.ssh/id_dsa - chmod 600 ~/.ssh/id_dsa
- cp "$SSH_KNOWN_HOSTS" ~/.ssh/known_hosts #- cp "$SSH_KNOWN_HOSTS" ~/.ssh/known_hosts
- chmod 644 ~/.ssh/known_hosts #- chmod 644 ~/.ssh/known_hosts
#- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config - echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
- './mvnw $MAVEN_POM_WITH_MODELS $MAVEN_CLI_OPTS $MAVEN_OPTS package -DskipTests' - './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) - 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 - 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/ - rsync -rav --delete "$WAR_FILE" $SERVER_USER@$SERVER_IP:/home/deployer/
tags: tags:
- vips-java - vips-java
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment