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.
 
 
 

60 lines
1.1 KiB

kind: pipeline
type: docker
name: pull
steps:
- name: validate yaml
image: docker:dind
volumes:
- name: dockersock
path: /var/run/docker.sock
environment:
REGISTRY: registry.fedy95.com
YAMLLINT_TAG: baseimage-yamllint:latest
REGISTRY_USERNAME:
from_secret: REGISTRY_USERNAME
REGISTRY_PASSWORD:
from_secret: REGISTRY_PASSWORD
commands:
- apk add --no-cache make
- docker login "$REGISTRY" -u"$REGISTRY_USERNAME" -p"$REGISTRY_PASSWORD"
- docker pull "$REGISTRY"/"$YAMLLINT_TAG"
- echo ${PWD}
- docker run --rm -v ${PWD}:/data "$REGISTRY"/"$YAMLLINT_TAG" .
- docker logout "$REGISTRY"
when:
event: pull_request
volumes:
- name: dockersock
host:
path: /var/run/docker.sock
...
---
kind: pipeline
type: ssh
name: default
clone:
disable: true
server:
host:
from_secret: host
user:
from_secret: user
password:
from_secret: password
steps:
- name: release
commands:
- cd /mnt/md0/infra/monitoring
- git pull
- make restart
trigger:
branch:
- master
event:
- push
...