ci auto deploy
This commit is contained in:
		
							parent
							
								
									1bfd7c3a59
								
							
						
					
					
						commit
						8d8a60153a
					
				|  | @ -1,22 +1,32 @@ | |||
| image: openwrtorg/packages-cci | ||||
| 
 | ||||
| variables: | ||||
|     SDK_HOST: "downloads.openwrt.org" | ||||
|     SDK_PATH: "snapshots/targets/ar71xx/generic" | ||||
|     SDK_FILE: "openwrt-sdk-ar71xx-generic_*.Linux-x86_64.tar.xz" | ||||
| 	SDK_HOST: "downloads.openwrt.org" | ||||
| 	SDK_PATH: "snapshots/targets/ar71xx/generic" | ||||
| 	SDK_FILE: "openwrt-sdk-ar71xx-generic_*.Linux-x86_64.tar.xz" | ||||
|      | ||||
| stages: | ||||
|     - compile | ||||
| 	- compile | ||||
| 	- deploy | ||||
| 
 | ||||
| compile: | ||||
|     stage: compile | ||||
|     script: | ||||
|         - echo "==== Download the SDK ====" | ||||
|         - sh .ci/download_sdk.sh | ||||
|         - echo "==== Prepare build_dir ====" | ||||
|         - sh .ci/prepare_build_dir.sh | ||||
|         - echo "==== build packages ====" | ||||
|         - sh .ci/build_pkgs.sh | ||||
|     artifacts: | ||||
|         paths: | ||||
|         - build_dir/bin/packages | ||||
| 	stage: compile | ||||
| 	script: | ||||
| 		- echo "==== Download the SDK ====" | ||||
| 		- .ci/download_sdk.sh | ||||
| 		- echo "==== Prepare build_dir ====" | ||||
| 		- .ci/prepare_build_dir.sh | ||||
| 		- echo "==== build packages ====" | ||||
| 		- .ci/build_pkgs.sh | ||||
| 	artifacts: | ||||
| 		paths: | ||||
| 			- build_dir/bin/packages | ||||
| 
 | ||||
| compile: | ||||
| 	stage: deploy | ||||
| 	script: | ||||
| 		- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )' | ||||
| 		- eval $(ssh-agent -s) | ||||
| 		- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null | ||||
| 		- .ci/deploy.sh flur.hotoho.n.sum7.eu | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue