fix(ci): correct image for generating slate docs
							parent
							
								
									a3a83a94ae
								
							
						
					
					
						commit
						e4449586c9
					
				| 
						 | 
					@ -23,14 +23,17 @@ pipeline:
 | 
				
			||||||
  slate-docs:
 | 
					  slate-docs:
 | 
				
			||||||
    image: 'slatedocs/slate'
 | 
					    image: 'slatedocs/slate'
 | 
				
			||||||
    group: 'generate'
 | 
					    group: 'generate'
 | 
				
			||||||
 | 
					    # Slate requires a specific directory to run in
 | 
				
			||||||
 | 
					    directory: '/srv/slate'
 | 
				
			||||||
    commands:
 | 
					    commands:
 | 
				
			||||||
      - cd docs/api
 | 
					      - mv "${CI_WORKSPACE}/docs/api" source
 | 
				
			||||||
      - bundle exec middleman build --clean
 | 
					      - bundle exec middleman build --clean --watcher-disable
 | 
				
			||||||
 | 
					      - mv build "${CI_WORKSPACE}/docs/api-build"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  archive:
 | 
					  archive:
 | 
				
			||||||
    image: 'alpine'
 | 
					    image: 'alpine'
 | 
				
			||||||
    commands:
 | 
					    commands:
 | 
				
			||||||
      - cp -r docs/api/build docs/public/api
 | 
					      - cp -r docs/api-build docs/public/api
 | 
				
			||||||
      - 'cd docs/public && tar czvf ../../docs.tar.gz *'
 | 
					      - 'cd docs/public && tar czvf ../../docs.tar.gz *'
 | 
				
			||||||
      - 'cd ../../src/_docs && tar czvf ../../api-docs.tar.gz *'
 | 
					      - 'cd ../../src/_docs && tar czvf ../../api-docs.tar.gz *'
 | 
				
			||||||
    when:
 | 
					    when:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue