| 
									
										
										
										
											2019-02-15 07:44:00 +00:00
										 |  |  | #!/usr/bin/env bash
 | 
					
						
							|  |  |  | pushd "$TRAVIS_BUILD_DIR" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | if [ -n "$DOCKER_PUSH_API_TOKEN" ] | 
					
						
							|  |  |  | then | 
					
						
							|  |  |  |   git clone https://github.com/"$DOCKER_PUSH_REPO".git docker-push-repo | 
					
						
							| 
									
										
										
										
											2019-02-15 16:14:01 +05:30
										 |  |  |   cd docker-push-repo | 
					
						
							| 
									
										
										
										
											2019-02-15 15:22:26 +05:30
										 |  |  |   git submodule update --init --remote --recursive | 
					
						
							|  |  |  |   git submodule status | 
					
						
							| 
									
										
										
										
											2019-02-15 07:44:00 +00:00
										 |  |  |   git add freecodecamp | 
					
						
							|  |  |  |   git -c user.name="$DOCKER_PUSH_USER" -c user.email='travis' \
 | 
					
						
							|  |  |  |     commit -m 'chore(ci): Travis CI - bump submodule' | 
					
						
							|  |  |  |   git push https://"$DOCKER_PUSH_USER":"$DOCKER_PUSH_API_TOKEN"@github.com/"$DOCKER_PUSH_REPO".git master | 
					
						
							|  |  |  | fi | 
					
						
							|  |  |  | popd |