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