Update gitlab-ci jobs to add the update job
Signed-off-by: Rémy Jacquin <remy@remyj.fr>
This commit is contained in:
		
							parent
							
								
									1d96617b2c
								
							
						
					
					
						commit
						b135340c71
					
				@ -23,6 +23,8 @@ test:
 | 
			
		||||
  script:
 | 
			
		||||
    - docker build -t $IMAGE_NAME .
 | 
			
		||||
    - docker run -v `pwd`:/git $IMAGE_NAME /bin/sh -c "wget -qO- https://fedoraproject.org/static/hotspot.txt | grep OK && cd /git && hugo"
 | 
			
		||||
  except:
 | 
			
		||||
    - schedules
 | 
			
		||||
 | 
			
		||||
deploy:
 | 
			
		||||
  stage: deploy
 | 
			
		||||
@ -32,3 +34,11 @@ deploy:
 | 
			
		||||
    - docker push $IMAGE_LATEST
 | 
			
		||||
  only:
 | 
			
		||||
    - tags
 | 
			
		||||
 | 
			
		||||
update:
 | 
			
		||||
  image: python:3.6
 | 
			
		||||
  before_script: []
 | 
			
		||||
  script:
 | 
			
		||||
    - ./update.py $API_TOKEN $PROJECT
 | 
			
		||||
  only:
 | 
			
		||||
    - schedules
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user