2022-05-11 18:02:32 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
2024-04-13 20:06:56 +00:00
|
|
|
name: deploy-sergio.am
|
2022-05-11 17:56:50 +00:00
|
|
|
|
2022-05-11 18:02:32 +00:00
|
|
|
steps:
|
2022-05-15 16:25:34 +00:00
|
|
|
- name: build
|
2024-04-14 09:45:36 +00:00
|
|
|
image: ubuntu:latest
|
2022-05-11 18:02:32 +00:00
|
|
|
commands:
|
2024-08-06 17:32:15 +00:00
|
|
|
- apt -y update && apt -y install bash git git-restore-mtime jq pandoc
|
|
|
|
- git restore-mtime
|
2024-04-13 21:02:28 +00:00
|
|
|
- bash ./build.sh
|
2024-04-13 22:34:39 +00:00
|
|
|
- rm -rf /var/www/_site && mv _site /var/www/
|
2022-05-16 09:44:36 +00:00
|
|
|
|
2022-05-15 12:43:59 +00:00
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
- main
|
2022-05-11 18:04:54 +00:00
|
|
|
|
|
|
|
node:
|
2023-08-14 12:20:47 +00:00
|
|
|
location: nexus
|