forked from vieter-v/vieter
				
			chore(ci): refactor ci configs a bit
							parent
							
								
									95d32e2d51
								
							
						
					
					
						commit
						847d77b2bc
					
				|  | @ -1,3 +1,6 @@ | |||
| variables: | ||||
|   - &vlang_image 'chewingbever/vlang:0.3' | ||||
| 
 | ||||
| matrix: | ||||
|   PLATFORM: | ||||
|     - 'linux/amd64' | ||||
|  | @ -7,7 +10,7 @@ platform: ${PLATFORM} | |||
| 
 | ||||
| pipeline: | ||||
|   install-modules: | ||||
|     image: 'chewingbever/vlang:0.3' | ||||
|     image: *vlang_image | ||||
|     pull: true | ||||
|     commands: | ||||
|       - export VMODULES=$PWD/.vmodules | ||||
|  | @ -16,7 +19,7 @@ pipeline: | |||
|       event: [push, pull_request] | ||||
| 
 | ||||
|   debug: | ||||
|     image: 'chewingbever/vlang:0.3' | ||||
|     image: *vlang_image | ||||
|     commands: | ||||
|       - export VMODULES=$PWD/.vmodules | ||||
|       - make | ||||
|  | @ -26,7 +29,7 @@ pipeline: | |||
|         exclude: [main] | ||||
| 
 | ||||
|   prod: | ||||
|     image: 'chewingbever/vlang:0.3' | ||||
|     image: *vlang_image | ||||
|     environment: | ||||
|       - LDFLAGS=-lz -lbz2 -llzma -lexpat -lzstd -llz4 -lsqlite3 -static | ||||
|     commands: | ||||
|  | @ -44,7 +47,7 @@ pipeline: | |||
|       event: [push, pull_request] | ||||
| 
 | ||||
|   upload: | ||||
|     image: 'chewingbever/vlang:0.3' | ||||
|     image: *vlang_image | ||||
|     secrets: [ s3_username, s3_password ] | ||||
|     commands: | ||||
|       # https://gist.github.com/JustinTimperio/7c7115f87b775618637d67ac911e595f | ||||
|  | @ -1,3 +1,6 @@ | |||
| variables: | ||||
|   - &vlang_image 'chewingbever/vlang:0.3' | ||||
| 
 | ||||
| platform: 'linux/amd64' | ||||
| branches: | ||||
|   exclude: [ main ] | ||||
|  | @ -11,7 +14,7 @@ pipeline: | |||
|       - make docs | ||||
| 
 | ||||
|   api-docs: | ||||
|     image: 'chewingbever/vlang:0.3' | ||||
|     image: *vlang_image | ||||
|     pull: true | ||||
|     group: 'generate' | ||||
|     commands: | ||||
|  | @ -1,3 +1,6 @@ | |||
| variables: | ||||
|   - &vlang_image 'chewingbever/vlang:0.3' | ||||
| 
 | ||||
| platform: 'linux/amd64' | ||||
| branches: [ 'main' ] | ||||
| depends_on: | ||||
|  | @ -8,7 +11,7 @@ skip_clone: true | |||
| 
 | ||||
| pipeline: | ||||
|   prepare: | ||||
|     image: 'chewingbever/vlang:0.3' | ||||
|     image: *vlang_image | ||||
|     pull: true | ||||
|     secrets: [ s3_username, s3_password ] | ||||
|     commands: | ||||
|  | @ -1,3 +1,6 @@ | |||
| variables: | ||||
|   - &vlang_image 'chewingbever/vlang:0.3' | ||||
| 
 | ||||
| # These checks already get performed on the feature branches | ||||
| branches: | ||||
|   exclude: [ main ] | ||||
|  | @ -5,7 +8,7 @@ platform: 'linux/amd64' | |||
| 
 | ||||
| pipeline: | ||||
|   lint: | ||||
|     image: 'chewingbever/vlang:0.3' | ||||
|     image: *vlang_image | ||||
|     pull: true | ||||
|     commands: | ||||
|       - make lint | ||||
|  | @ -1,3 +1,6 @@ | |||
| variables: | ||||
|   - &vlang_image 'chewingbever/vlang:0.3' | ||||
| 
 | ||||
| platform: 'linux/amd64' | ||||
| branches: | ||||
|   exclude: [ main ] | ||||
|  | @ -9,7 +12,7 @@ skip_clone: true | |||
| 
 | ||||
| pipeline: | ||||
|   generate: | ||||
|     image: 'chewingbever/vlang:0.3' | ||||
|     image: *vlang_image | ||||
|     pull: true | ||||
|     commands: | ||||
|       - curl -o vieter -L "https://s3.rustybever.be/vieter/commits/$CI_COMMIT_SHA/vieter-linux-amd64" | ||||
|  | @ -1,3 +1,6 @@ | |||
| variables: | ||||
|   - &vlang_image 'chewingbever/vlang:0.3' | ||||
| 
 | ||||
| matrix: | ||||
|   PLATFORM: | ||||
|     - 'linux/amd64' | ||||
|  | @ -9,7 +12,7 @@ platform: ${PLATFORM} | |||
| 
 | ||||
| pipeline: | ||||
|   install-modules: | ||||
|     image: 'chewingbever/vlang:0.3' | ||||
|     image: *vlang_image | ||||
|     pull: true | ||||
|     commands: | ||||
|       - export VMODULES=$PWD/.vmodules | ||||
|  | @ -18,7 +21,7 @@ pipeline: | |||
|       event: [pull_request] | ||||
| 
 | ||||
|   test: | ||||
|     image: 'chewingbever/vlang:0.3' | ||||
|     image: *vlang_image | ||||
|     pull: true | ||||
|     commands: | ||||
|       - export VMODULES=$PWD/.vmodules | ||||
		Loading…
	
		Reference in New Issue