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.
 
 
 

66 lines
1.3 KiB

kind: pipeline
type: docker
name: pull
steps:
- name: validate yaml
image: registry.fedy95.com/baseimage-yamllint:latest
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:
- ls -lah
# - apk add --no-cache make
# - docker login "$REGISTRY" -u"$REGISTRY_USERNAME" -p"$REGISTRY_PASSWORD"
# - docker pull "$REGISTRY"/"$YAMLLINT_TAG"
# - echo "$REGISTRY"
# - echo "$YAMLLINT_TAG"
# - ls -lah
# - echo `pwd`
# - echo "$REGISTRY"/"$YAMLLINT_TAG"
# - docker run --rm $$(tty -s && echo "-it" || echo) -v `pwd`:/data "$REGISTRY"/"$YAMLLINT_TAG" .
# - make validate
# - 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
...