27 lines
351 B
YAML
27 lines
351 B
YAML
kind: pipeline
|
|
type: docker
|
|
name: deploy
|
|
|
|
steps:
|
|
- name: deploy
|
|
image: ubuntu:latest
|
|
entrypoint: ["/bin/bash"]
|
|
|
|
environment:
|
|
HOST:
|
|
from_secret: host
|
|
USER:
|
|
from_secret: user
|
|
SSH_KEY:
|
|
from_secret: ssh_key
|
|
PATH:
|
|
from_secret: path
|
|
|
|
when:
|
|
branch:
|
|
- main
|
|
|
|
commands:
|
|
- echo test
|
|
- apt-get update
|