2020-02-11 14:25:44 -08:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: default
|
|
|
|
|
2020-02-29 23:04:40 -08:00
|
|
|
volumes:
|
|
|
|
- name: live-output
|
|
|
|
temp: {}
|
|
|
|
|
2020-02-11 14:25:44 -08:00
|
|
|
steps:
|
2020-02-29 23:16:49 -08:00
|
|
|
- name: test-compiler
|
|
|
|
image: archlinux
|
|
|
|
commands:
|
2020-04-26 21:05:28 -07:00
|
|
|
- pacman -Sy cmake gcc make llvm bison flex gettext libffi --noconfirm
|
2020-02-29 23:16:49 -08:00
|
|
|
- cd code/compiler
|
|
|
|
- ./test.sh
|
2020-02-29 22:18:33 -08:00
|
|
|
- name: build-live
|
2020-02-29 22:03:03 -08:00
|
|
|
image: klakegg/hugo:ext-alpine
|
2020-02-29 21:48:08 -08:00
|
|
|
commands:
|
2020-02-29 23:13:59 -08:00
|
|
|
- hugo -D --baseUrl "http://danilafe.com:8080"
|
2020-02-29 23:04:40 -08:00
|
|
|
volumes:
|
|
|
|
- name: live-output
|
|
|
|
path: /live-output
|
2020-02-29 23:13:59 -08:00
|
|
|
environment:
|
|
|
|
HUGO_DESTINATION: /live-output
|
2020-04-26 19:57:50 -07:00
|
|
|
# - name: upload-live
|
|
|
|
# image: eeacms/rsync
|
|
|
|
# commands:
|
|
|
|
# - eval `ssh-agent -s`
|
|
|
|
# - echo "$CUSTOM_KEY" | ssh-add -
|
|
|
|
# - mkdir -p ~/.ssh
|
|
|
|
# - echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
|
|
|
|
# - rsync -rv -e "ssh -p 22" /live-output/ blog-live@danilafe.com:/var/www/blog-live/ --checksum
|
|
|
|
# environment:
|
|
|
|
# CUSTOM_KEY:
|
|
|
|
# from_secret: live_ssh_key
|
|
|
|
# volumes:
|
|
|
|
# - name: live-output
|
|
|
|
# path: /live-output
|