You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

42 lines
1020 B

kind: pipeline
type: exec
name: default
clone:
depth: 50
steps:
- name: analyze
environment:
SONAR_TOKEN:
from_secret: sonar_token
commands:
- /opt/sonar-scanner/bin/sonar-scanner -Dsonar.login=$$SONAR_TOKEN
- name: submodules
depends_on:
- analyze
commands:
- git submodule update --init --recursive --remote
- name: build
depends_on:
- submodules
commands:
- hugo
- name: deploy
depends_on:
- build
commands:
- sudo mkdir -p /var/lib/static-site-server-rs/sites/site_manual_notifier/files
- sudo cp -R public/. /var/lib/static-site-server-rs/sites/site_manual_notifier/files/.
- sudo install -m 644 -T site.yaml /var/lib/static-site-server-rs/sites/site_manual_notifier/site.yaml
- sudo chown http:http -R /var/lib/static-site-server-rs/sites/site_manual_notifier
- name: reload
depends_on:
- deploy
commands:
- sudo touch /var/lib/static-site-server-rs/routes.yaml