|
@ -3,16 +3,16 @@ kind: pipeline |
|
|
type: docker |
|
|
type: docker |
|
|
name: pull_request |
|
|
name: pull_request |
|
|
image_pull_secrets: |
|
|
image_pull_secrets: |
|
|
- dockerconfigjson |
|
|
|
|
|
|
|
|
- dockerconfigjson |
|
|
|
|
|
|
|
|
steps: |
|
|
steps: |
|
|
- name: lint yaml |
|
|
|
|
|
image: registry.fedy95.com/baseimage-yamllint:latest |
|
|
|
|
|
commands: |
|
|
|
|
|
- yamllint -c /yamllint/relaxed.yaml etc/docker/registry/config.yml |
|
|
|
|
|
- yamllint -c /yamllint/relaxed.yaml docker-compose.yml |
|
|
|
|
|
when: |
|
|
|
|
|
event: pull_request |
|
|
|
|
|
|
|
|
- name: lint yaml |
|
|
|
|
|
image: registry.fedy95.com/baseimage-yamllint:latest |
|
|
|
|
|
commands: |
|
|
|
|
|
- yamllint -c /yamllint/relaxed.yaml etc/docker/registry/config.yml |
|
|
|
|
|
- yamllint -c /yamllint/relaxed.yaml docker-compose.yml |
|
|
|
|
|
when: |
|
|
|
|
|
event: pull_request |
|
|
|
|
|
|
|
|
--- |
|
|
--- |
|
|
kind: pipeline |
|
|
kind: pipeline |
|
@ -20,26 +20,26 @@ type: ssh |
|
|
name: master_push |
|
|
name: master_push |
|
|
|
|
|
|
|
|
clone: |
|
|
clone: |
|
|
disable: true |
|
|
|
|
|
|
|
|
disable: true |
|
|
|
|
|
|
|
|
server: |
|
|
server: |
|
|
host: |
|
|
|
|
|
from_secret: host |
|
|
|
|
|
user: |
|
|
|
|
|
from_secret: user |
|
|
|
|
|
password: |
|
|
|
|
|
from_secret: password |
|
|
|
|
|
|
|
|
host: |
|
|
|
|
|
from_secret: host |
|
|
|
|
|
user: |
|
|
|
|
|
from_secret: user |
|
|
|
|
|
password: |
|
|
|
|
|
from_secret: password |
|
|
|
|
|
|
|
|
steps: |
|
|
steps: |
|
|
- name: release |
|
|
|
|
|
commands: |
|
|
|
|
|
- cd /mnt/md0/infra/docker_registry |
|
|
|
|
|
- git pull |
|
|
|
|
|
- make restart |
|
|
|
|
|
|
|
|
- name: release |
|
|
|
|
|
commands: |
|
|
|
|
|
- cd /mnt/md0/infra/docker_registry |
|
|
|
|
|
- git pull |
|
|
|
|
|
- make restart |
|
|
|
|
|
|
|
|
trigger: |
|
|
trigger: |
|
|
branch: |
|
|
|
|
|
- master |
|
|
|
|
|
event: |
|
|
|
|
|
- push |
|
|
|
|
|
|
|
|
branch: |
|
|
|
|
|
- master |
|
|
|
|
|
event: |
|
|
|
|
|
- push |
|
|
... |
|
|
... |