committed-violet/.crystalintegration.yml

52 lines
1.0 KiB
YAML

when:
event: [ push, tag ]
variables:
- &git_image 'sc.cryxtal.org/ci-img/mini-git:latest'
- &bash_image 'sc.cryxtal.org/ci-img/mini-bash:latest'
- &nodejs_image 'node:lts'
- &commit_msg 'CrystalIntegration build'
pipeline:
auto-prep:
image: *bash_image
group: prep
commands:
- ./gen.sh auto
- ./gen.sh minify-prep
minify-deps:
image: *nodejs_image
group: prep
commands:
- ./gen.sh minify-deps
minify-clean:
image: *nodejs_image
group: build
commands:
- ./gen.sh minify
- ./gen.sh ci-clean
build-clone:
image: *git_image
group: build
secrets: [ crystalcommit_token ]
commands:
- git clone -b build https://$CRYSTALCOMMIT_TOKEN@sc.cryxtal.org/$CI_REPO.git build
when:
event: [ push ]
build-push:
image: *git_image
secrets: [ git_username, git_email ]
environment:
COMMIT_MSG: *commit_msg
commands:
- ./gen.sh ci-build-push
when:
event: [ push ]
branches:
exclude: [ build ]