Streamline the push and build process
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
generate:
|
||||
stage: generate
|
||||
artifacts:
|
||||
paths:
|
||||
- distros/**/*.pkrvars.hcl
|
||||
reports:
|
||||
dotenv: build.env
|
||||
script: nix run ".#generate"
|
||||
|
||||
continue:
|
||||
stage: generate
|
||||
artifacts:
|
||||
paths:
|
||||
- .gitlab-ci-build.yml
|
||||
script:
|
||||
- nix build ".#continue"
|
||||
- cp result .gitlab-ci-build.yml
|
||||
- cat result
|
||||
|
||||
shellcheck:
|
||||
stage: generate
|
||||
script: nix run ".#shellcheck"
|
||||
|
||||
flake-check:
|
||||
stage: generate
|
||||
script: nix flake check
|
||||
|
||||
validate:
|
||||
stage: check
|
||||
needs:
|
||||
- generate
|
||||
cache:
|
||||
- key:
|
||||
files:
|
||||
- sources/build.pkr.hcl
|
||||
paths:
|
||||
- ./packer_config/
|
||||
script: nix run ".#validate"
|
||||
Reference in New Issue
Block a user