mirror of
				https://github.com/KevinMidboe/schleppe-lab.git
				synced 2025-10-29 17:50:39 +00:00 
			
		
		
		
	Drone CI config
This commit is contained in:
		
							
								
								
									
										38
									
								
								.drone.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										38
									
								
								.drone.yml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,38 @@ | |||||||
|  | --- | ||||||
|  | kind: pipeline | ||||||
|  | type: docker | ||||||
|  | name: Build and publish | ||||||
|  |  | ||||||
|  | platform: | ||||||
|  |   os: linux | ||||||
|  |   arch: amd64 | ||||||
|  |  | ||||||
|  | steps: | ||||||
|  |   - name: build | ||||||
|  |     image: ruby:3.1-slim-bullseye | ||||||
|  |     commands: | ||||||
|  |       - apt update && apt install -y --no-install-recommends build-essential git | ||||||
|  |       - gem update --system && gem install jekyll bundler | ||||||
|  |       - bundle install | ||||||
|  |       - jekyll build | ||||||
|  |  | ||||||
|  |   - name: Build and publish docker image | ||||||
|  |     image: plugins/docker | ||||||
|  |     settings: | ||||||
|  |       registry: ghcr.io | ||||||
|  |       repo: ghcr.io/kevinmidboe/schleppe-lab | ||||||
|  |       dockerfile: Dockerfile | ||||||
|  |       username: | ||||||
|  |         from_secret: GITHUB_USERNAME | ||||||
|  |       password: | ||||||
|  |         from_secret: GITHUB_PASSWORD | ||||||
|  |       tags: latest | ||||||
|  |     when: | ||||||
|  |       event: | ||||||
|  |         include: | ||||||
|  |           - push | ||||||
|  |         exclude: | ||||||
|  |           - pull_request | ||||||
|  |       branch: | ||||||
|  |         - main | ||||||
|  |  | ||||||
		Reference in New Issue
	
	Block a user