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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 

51 lines
972 B

---
kind: pipeline
type: docker
name: pull_request
image_pull_secrets:
- dockerconfigjson
steps:
- name: lint yaml
image: registry.fedy95.com/baseimage-yamllint:latest
commands:
- yamllint -c /yamllint/relaxed.yaml docker-compose.yml
when:
event: pull_request
---
kind: pipeline
type: ssh
name: master_push
clone:
disable: true
server:
host:
from_secret: host
user:
from_secret: user
password:
from_secret: password
steps:
- name: deploy
commands:
- cd /var/services/homes/fedy95/infra/plex/infra/plex
- git pull
- docker-compose -f docker-compose.yml pull
- docker-compose -f docker-compose.yml stop
- docker-compose -f docker-compose.yml up -d
- name: cleanup
commands:
- cd /var/services/homes/fedy95/infra/plex/infra/plex
- docker system prune --all --force
- docker system prune --volumes --force
trigger:
branch:
- master
event:
- push
...