Update .gitlab-ci.yml
This commit is contained in:
		
							parent
							
								
									f89300888e
								
							
						
					
					
						commit
						a4c778426c
					
				
					 1 changed files with 9 additions and 0 deletions
				
			
		| 
						 | 
					@ -16,6 +16,8 @@ build_pages:
 | 
				
			||||||
  stage: pages
 | 
					  stage: pages
 | 
				
			||||||
  variables:
 | 
					  variables:
 | 
				
			||||||
    SHELL: "/bin/sh"
 | 
					    SHELL: "/bin/sh"
 | 
				
			||||||
 | 
					  artifacts:
 | 
				
			||||||
 | 
					    untracked: true
 | 
				
			||||||
  script:
 | 
					  script:
 | 
				
			||||||
    - apk add --no-cache --upgrade hugo
 | 
					    - apk add --no-cache --upgrade hugo
 | 
				
			||||||
    - hugo
 | 
					    - hugo
 | 
				
			||||||
| 
						 | 
					@ -23,6 +25,10 @@ build_pages:
 | 
				
			||||||
build_calendar:
 | 
					build_calendar:
 | 
				
			||||||
  image: "python:3.7-alpine3.8"
 | 
					  image: "python:3.7-alpine3.8"
 | 
				
			||||||
  stage: calendar
 | 
					  stage: calendar
 | 
				
			||||||
 | 
					  dependencies: 
 | 
				
			||||||
 | 
					    - pages
 | 
				
			||||||
 | 
					  artifacts:
 | 
				
			||||||
 | 
					    untracked: true
 | 
				
			||||||
  variables:
 | 
					  variables:
 | 
				
			||||||
    SHELL: "/bin/sh"
 | 
					    SHELL: "/bin/sh"
 | 
				
			||||||
  script:
 | 
					  script:
 | 
				
			||||||
| 
						 | 
					@ -34,10 +40,13 @@ build_calendar:
 | 
				
			||||||
deploy_staging:
 | 
					deploy_staging:
 | 
				
			||||||
  image: "alpine:3.8"
 | 
					  image: "alpine:3.8"
 | 
				
			||||||
  stage: deploy
 | 
					  stage: deploy
 | 
				
			||||||
 | 
					  dependencies: 
 | 
				
			||||||
 | 
					    - calendar
 | 
				
			||||||
  variables:
 | 
					  variables:
 | 
				
			||||||
    SHELL: "/bin/sh"
 | 
					    SHELL: "/bin/sh"
 | 
				
			||||||
  script:
 | 
					  script:
 | 
				
			||||||
    - echo "deploy all the things..."
 | 
					    - echo "deploy all the things..."
 | 
				
			||||||
 | 
					    - ls -la public/
 | 
				
			||||||
  when: on_success
 | 
					  when: on_success
 | 
				
			||||||
  environment:
 | 
					  environment:
 | 
				
			||||||
    name: staging
 | 
					    name: staging
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue