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.
65 lines
1.3 KiB
65 lines
1.3 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 "$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
|
|
...
|