a577164443
- Check/gate jobs to build docker image - Post job to publish image to quay.io Change-Id: I44b813a5bd38965208affcee12709e097d3d1665
198 lines
7.2 KiB
YAML
198 lines
7.2 KiB
YAML
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
- project:
|
|
check:
|
|
jobs:
|
|
- airship-drydock-lint-ws
|
|
- airship-drydock-doc-build
|
|
- airship-drydock-lint-pep8:
|
|
files:
|
|
- ^.*\.py$
|
|
- airship-drydock-lint-chart:
|
|
files:
|
|
- ^charts/.*$
|
|
- airship-drydock-unit-py35
|
|
- airship-drydock-security-bandit:
|
|
files:
|
|
- ^.*\.py$
|
|
- airship-drydock-docker-build-gate
|
|
|
|
gate:
|
|
jobs:
|
|
- airship-drydock-lint-ws
|
|
- airship-drydock-doc-build
|
|
- airship-drydock-lint-pep8:
|
|
files:
|
|
- ^.*\.py$
|
|
- airship-drydock-lint-chart:
|
|
files:
|
|
- ^charts/.*$
|
|
- airship-drydock-unit-py35
|
|
- airship-drydock-docker-build-gate
|
|
- airship-drydock-security-bandit:
|
|
files:
|
|
- ^.*\.py$
|
|
post:
|
|
jobs:
|
|
- airship-drydock-doc-publish
|
|
- airship-drydock-docker-publish
|
|
|
|
- nodeset:
|
|
name: airship-drydock-single-node
|
|
nodes:
|
|
- name: primary
|
|
label: ubuntu-xenial
|
|
|
|
- job:
|
|
name: airship-drydock-lint-ws
|
|
description: |
|
|
Lints all files for trailing whitespace
|
|
run: tools/gate/playbooks/zuul-linter.yaml
|
|
timeout: 300
|
|
nodeset: airship-drydock-single-node
|
|
|
|
- job:
|
|
name: airship-drydock-lint-pep8
|
|
description: |
|
|
Lints Python files against the PEP8 standard
|
|
run: tools/gate/playbooks/pep8-linter.yaml
|
|
timeout: 300
|
|
nodeset: airship-drydock-single-node
|
|
|
|
- job:
|
|
name: airship-drydock-lint-chart
|
|
description: |
|
|
Lints Helm charts for validity
|
|
run: tools/gate/playbooks/helm-linter.yaml
|
|
timeout: 300
|
|
nodeset: airship-drydock-single-node
|
|
|
|
- job:
|
|
name: airship-drydock-unit-py35
|
|
description: |
|
|
Executes unit tests under Python 3.5
|
|
run: tools/gate/playbooks/unit-py35.yaml
|
|
timeout: 300
|
|
nodeset: airship-drydock-single-node
|
|
|
|
- job:
|
|
name: airship-drydock-security-bandit
|
|
description: |
|
|
Executes the Bandit security scanner against Python files
|
|
run: tools/gate/playbooks/security-bandit.yaml
|
|
timeout: 300
|
|
nodeset: airship-drydock-single-node
|
|
|
|
- job:
|
|
name: airship-drydock-docker-build-gate
|
|
timeout: 1800
|
|
run: tools/gate/playbooks/docker-image-build.yaml
|
|
nodeset: airship-drydock-single-node
|
|
irrelevant-files:
|
|
- '^docs/.*'
|
|
- '^charts/.*'
|
|
vars:
|
|
publish: false
|
|
tags:
|
|
dynamic:
|
|
patch_set: true
|
|
|
|
- job:
|
|
name: airship-drydock-docker-publish
|
|
timeout: 1800
|
|
run: tools/gate/playbooks/docker-image-build.yaml
|
|
nodeset: airship-drydock-single-node
|
|
secrets:
|
|
- airship_drydock_quay_creds
|
|
irrelevant-files:
|
|
- '^docs/.*'
|
|
- '^charts/.*'
|
|
vars:
|
|
publish: true
|
|
tags:
|
|
dynamic:
|
|
branch: true
|
|
commit: true
|
|
static:
|
|
- latest
|
|
|
|
- job:
|
|
name: airship-drydock-doc-build
|
|
description: |
|
|
Locally build the documentation to check for errors
|
|
run: tools/gate/playbooks/doc-build.yaml
|
|
timeout: 300
|
|
nodeset: airship-drydock-single-node
|
|
|
|
- job:
|
|
name: airship-drydock-doc-publish
|
|
description: |
|
|
Publish documentation on airship-drydock.readthedocs.io
|
|
run: tools/gate/playbooks/doc-publish.yaml
|
|
secrets:
|
|
- airship_drydock_readthedocs
|
|
timeout: 300
|
|
nodeset: airship-drydock-single-node
|
|
|
|
- secret:
|
|
name: airship_drydock_quay_creds
|
|
data:
|
|
username: !encrypted/pkcs1-oaep
|
|
- La6hrlZZdII5Vj994+Z1jULfO2/+fsbYjiF2PU5Cka9lsg7VksIPhuCXxSZVwLBoLphhb
|
|
ErNe3kvoPB8Sx1VBhkua7OOEjYVZZjJziadxwZfuvTcrOInGAM7XdK7Bks17v4HaL1dyz
|
|
6ccMuLrXJeE708ts8jaKMmyKaS8wb2A4KiBVLZQP89gS8EFvVSzxK3DWXHdAP7IezQyk4
|
|
Fi4MsNnOSEJY45Fy+ibZ07bDxYEQHL6hpBhQYht1DUQkeqAiDSnShBMb1+G3HGk3SMjae
|
|
PDGtL3fz4zixok+jU3BDbvPKoEFEz45AoQHILTL+KoPPQbRQOmrGXOh7nmEtGyFZar6be
|
|
wy+rYisXdJVaoqCGPMRPkBSkohgl/80Ary1d0U+k9vlDnFjpw62svDJ1cuAoKXKOlUWgF
|
|
qs6+GaN5ltnmYfakpgo4vrkbuXw2DdKAio3cDW+PA0O4aV9yCvDtbeFY2SfQX6WExxk25
|
|
CIu0UbL/eB/lRrb3PMElJbF7RmRrX5mf4k11YhnslHATzGMzGkQ1VkZQH/C+Q2xx5XSGP
|
|
ZFJCLNYvY/hF6IyrCx6lpsCThfRYxQd3jy1Du1qjv23mUnDueTzGvz7somBazB/ceom4z
|
|
v0T98h7JHDZhfq/HiGyliRwCh4R7J/xxf4xjLScoBwfGDZp1gPcCMAQC8NtAE8=
|
|
password: !encrypted/pkcs1-oaep
|
|
- Ae8OFJse6u76Vw6p6LqWwgFOWTdb4ACZktK9mbhUA4GSSdEOUKbDoEyuo5I9qFPLHeLA8
|
|
fK7RjUoC+gItAiWZjQQxrDoqeuqykHRLnjo2p+yd3hDTVmHXYkEw1jmMb0iP+DNNMl2qh
|
|
3beL1C6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