2020-02-11 14:25:44 -08:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: default
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: test-compiler
|
2020-02-11 18:52:06 -08:00
|
|
|
image: archlinux
|
2020-02-11 14:25:44 -08:00
|
|
|
commands:
|
2020-02-11 19:28:24 -08:00
|
|
|
- pacman -Sy cmake gcc make llvm bison flex gettext --noconfirm
|
2020-02-11 18:37:21 -08:00
|
|
|
- cd code/compiler
|
|
|
|
- ./test.sh
|
2020-02-29 21:48:08 -08:00
|
|
|
- name: upload-live
|
|
|
|
image: jguyomard/hugo-builder
|
|
|
|
commands:
|
2020-02-29 21:52:01 -08:00
|
|
|
- eval `ssh-agent -s`
|
2020-02-29 21:48:08 -08:00
|
|
|
- echo "$CUSTOM_KEY" | ssh-add -
|
|
|
|
- mkdir -p ~/.ssh
|
|
|
|
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
|
|
|
|
- hugo -D --baseUrl "http://danilafe.com:8080"
|
|
|
|
- rsync -rv -e "ssh -p 22" ./public blog-live@danilafe.com:/var/www/blog-live --checksum
|
|
|
|
environment:
|
|
|
|
CUSTOM_KEY:
|
|
|
|
from_secret: live_ssh_key
|