Tentavite de push ssh
This commit is contained in:
		
							
								
								
									
										17
									
								
								.drone.yml
									
									
									
									
									
								
							
							
						
						
									
										17
									
								
								.drone.yml
									
									
									
									
									
								
							| @@ -1,10 +1,19 @@ | ||||
| kind: pipeline | ||||
| name: hello-world | ||||
| name: Push Content | ||||
| type: docker | ||||
|  | ||||
| steps: | ||||
|   - name: say-hello | ||||
|     image: alpine:3.8 | ||||
|   - name: Push Content | ||||
|     image: alpine | ||||
|     commands: | ||||
|       - echo Chipololo | ||||
|       - echo Début du Push | ||||
|     - eval `ssh-agent -s` | ||||
|     - echo "$SSH_KEY" | ssh-add - | ||||
|     - mkdir -p ~/.ssh | ||||
|     - echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config | ||||
|     - rsync -rv --delete -e "ssh -p 22" ./ sshcontent@91.121.90.228:~/raw.opytex.org/www/ --checksum | ||||
|     environment: | ||||
|       SSH_KEY: | ||||
|         from_secret: drone_ssh_key | ||||
|  | ||||
|        | ||||
		Reference in New Issue
	
	Block a user