Tom Willemse
2d05019aa6
Using the File type from the Gitlab CI/CD pipeline options, specify the required files on the command line directly instead of writing to them from a script. SSH won’t accept the identity file specified (‘DEPLOY_KEY’) if its file permissions are more permissive than 600.
46 lines
889 B
YAML
46 lines
889 B
YAML
image: silex/emacs:26.1-alpine-dev
|
|
|
|
stages:
|
|
- test
|
|
- package
|
|
- deploy
|
|
|
|
test-oni-bookmark:
|
|
stage: test
|
|
script: make test-oni-bookmark DEPS="oni-data-dir"
|
|
|
|
test-oni-alert:
|
|
stage: test
|
|
script: make test-oni-alert
|
|
|
|
test-oni-grep:
|
|
stage: test
|
|
script: make test-oni-grep
|
|
|
|
test-oni-highlight-indent-guides:
|
|
stage: test
|
|
script: make test-oni-highlight-indent-guides
|
|
|
|
test-oni-php:
|
|
stage: test
|
|
script: make test-oni-php DEPS="oni-flycheck oni-company oni-fci"
|
|
|
|
package:
|
|
stage: package
|
|
before_script:
|
|
- rm -rf bin/
|
|
- mkdir bin/
|
|
script: make package
|
|
artifacts:
|
|
paths:
|
|
- bin/
|
|
|
|
deploy:
|
|
stage: deploy
|
|
dependencies:
|
|
- package
|
|
before_script:
|
|
- chmod 600 "$DEPLOY_KEY"
|
|
- apk update && apk add rsync
|
|
script:
|
|
- rsync -e "ssh -o \"UserKnownHostsFile $KNOWN_HOSTS\" -p 4511 -i $DEPLOY_KEY" -v -c -r --delete bin/ "elpa@ryuslash.org:"
|