--- kind: pipeline type: ssh name: production trigger: branch: - main server: host: homelab-blog.lan user: root ssh_key: from_secret: ssh_key steps: - name: initialize commands: - git submodule update --init - hugo version # - ln -s /home/hebron/hugo_resources/production resources - name: build staging commands: - hugo --gc --minify --buildDrafts -b https://blog.broillet.ch/ - name: copy staging build commands: - mkdir -p /var/www/html/staging/ - cp -R public/* /var/www/html/staging/ - name: build production commands: - hugo --gc --minify -b https://blog.broillet.ch/ - name: copy production build commands: - mkdir -p /var/www/html/prod/ - cp -R public/* /var/www/html/prod/