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.
 

76 lines
3.2 KiB

---
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 etc/netbox/opt/netbox/initializers/aggregates.yml
- yamllint -c /yamllint/relaxed.yaml etc/netbox/opt/netbox/initializers/cluster_types.yml
- yamllint -c /yamllint/relaxed.yaml etc/netbox/opt/netbox/initializers/clusters.yml
- yamllint -c /yamllint/relaxed.yaml etc/netbox/opt/netbox/initializers/custom_fields.yml
- yamllint -c /yamllint/relaxed.yaml etc/netbox/opt/netbox/initializers/dcim_interfaces.yml
- yamllint -c /yamllint/relaxed.yaml etc/netbox/opt/netbox/initializers/device_roles.yml
- yamllint -c /yamllint/relaxed.yaml etc/netbox/opt/netbox/initializers/device_types.yml
- yamllint -c /yamllint/relaxed.yaml etc/netbox/opt/netbox/initializers/devices.yml
- yamllint -c /yamllint/relaxed.yaml etc/netbox/opt/netbox/initializers/groups.yml
- yamllint -c /yamllint/relaxed.yaml etc/netbox/opt/netbox/initializers/ip_addresses.yml
- yamllint -c /yamllint/relaxed.yaml etc/netbox/opt/netbox/initializers/manufacturers.yml
- yamllint -c /yamllint/relaxed.yaml etc/netbox/opt/netbox/initializers/platforms.yml
- yamllint -c /yamllint/relaxed.yaml etc/netbox/opt/netbox/initializers/prefix_vlan_roles.yml
- yamllint -c /yamllint/relaxed.yaml etc/netbox/opt/netbox/initializers/prefixes.yml
- yamllint -c /yamllint/relaxed.yaml etc/netbox/opt/netbox/initializers/rack_groups.yml
- yamllint -c /yamllint/relaxed.yaml etc/netbox/opt/netbox/initializers/rack_roles.yml
- yamllint -c /yamllint/relaxed.yaml etc/netbox/opt/netbox/initializers/racks.yml
- yamllint -c /yamllint/relaxed.yaml etc/netbox/opt/netbox/initializers/regions.yml
- yamllint -c /yamllint/relaxed.yaml etc/netbox/opt/netbox/initializers/rirs.yml
- yamllint -c /yamllint/relaxed.yaml etc/netbox/opt/netbox/initializers/sites.yml
- yamllint -c /yamllint/relaxed.yaml etc/netbox/opt/netbox/initializers/tenant_groups.yml
- yamllint -c /yamllint/relaxed.yaml etc/netbox/opt/netbox/initializers/tenants.yml
- yamllint -c /yamllint/relaxed.yaml etc/netbox/opt/netbox/initializers/users.yml
- yamllint -c /yamllint/relaxed.yaml etc/netbox/opt/netbox/initializers/virtual_machines.yml
- yamllint -c /yamllint/relaxed.yaml etc/netbox/opt/netbox/initializers/virtualization_interfaces.yml
- yamllint -c /yamllint/relaxed.yaml etc/netbox/opt/netbox/initializers/vlan_groups.yml
- yamllint -c /yamllint/relaxed.yaml etc/netbox/opt/netbox/initializers/vlans.yml
- yamllint -c /yamllint/relaxed.yaml etc/netbox/opt/netbox/initializers/vrfs.yml
- 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: release
commands:
- cd /home/fedy95/netbox
- git pull
- make restart
- name: cleanup
commands:
- cd /home/fedy95/netbox
- make cleanup
trigger:
branch:
- master
event:
- push
...