2023-08-19 20:25:29 +02:00
|
|
|
kind: pipeline
|
2023-08-19 20:45:06 +02:00
|
|
|
type: docker
|
|
|
|
name: deploy
|
2023-08-19 20:25:29 +02:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: build
|
|
|
|
image: ghcr.io/getzola/zola:v0.17.2
|
|
|
|
entrypoint: ["/bin/zola"]
|
|
|
|
command: ["build"]
|
|
|
|
|
|
|
|
- name: deploy
|
2023-08-19 20:59:21 +02:00
|
|
|
image: ubuntu:latest
|
2023-08-19 20:37:37 +02:00
|
|
|
|
2023-08-19 20:25:29 +02:00
|
|
|
environment:
|
2023-08-19 20:37:37 +02:00
|
|
|
HOST:
|
|
|
|
from_secret: host
|
|
|
|
USER:
|
|
|
|
from_secret: user
|
|
|
|
SSH_KEY:
|
|
|
|
from_secret: ssh_key
|
|
|
|
PATH:
|
|
|
|
from_secret: path
|
|
|
|
|
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
- main
|
|
|
|
|
|
|
|
commands:
|
2023-08-19 20:52:36 +02:00
|
|
|
- echo test
|
2023-08-19 20:59:21 +02:00
|
|
|
- apt-get update
|