--- 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 /mnt/md0/infra/netbox - git pull - make restart - name: cleanup commands: - cd /mnt/md0/infra/netbox - make cleanup trigger: branch: - master event: - push ...