[#33] Add image build gate
This change adds a voting job that builds the airshipctl docker image on each patch set. The same job will be updated in a later commit to publish the image to the quay.io/airshipit/airshipctl repository. Related #33 Change-Id: I202da62c77ec277312518fead09f0f3ef32ccde8 Signed-off-by: Drew Walters <andrew.walters@att.com>
This commit is contained in:
parent
d6811316a1
commit
5aebf87fc2
17
playbooks/airship-airshipctl-build-images.yaml
Normal file
17
playbooks/airship-airshipctl-build-images.yaml
Normal file
@ -0,0 +1,17 @@
|
||||
# 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.
|
||||
|
||||
- hosts: all
|
||||
become: yes
|
||||
roles:
|
||||
- install-docker
|
||||
- airshipctl-build-images
|
21
roles/airshipctl-build-images/tasks/main.yaml
Normal file
21
roles/airshipctl-build-images/tasks/main.yaml
Normal file
@ -0,0 +1,21 @@
|
||||
# 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.
|
||||
|
||||
- name: Buid airshipctl Image
|
||||
make:
|
||||
chdir: "{{ zuul.project.src_dir }}"
|
||||
target: images
|
||||
|
||||
- name: Verify Image Exists
|
||||
shell: docker image inspect "$(make print-docker-image-tag)"
|
||||
args:
|
||||
chdir: "{{ zuul.project.src_dir }}"
|
@ -16,6 +16,16 @@
|
||||
run: playbooks/airship-airshipctl-lint-unit.yaml
|
||||
nodeset: airship-airshipctl-single-node
|
||||
|
||||
- job:
|
||||
name: airship-airshipctl-build-image
|
||||
nodeset: airship-airshipctl-single-node
|
||||
run: playbooks/airship-airshipctl-build-images.yaml
|
||||
roles:
|
||||
- zuul: openstack/openstack-helm-infra
|
||||
irrelevant-files:
|
||||
- ^.*\.md$
|
||||
- ^docs/.*$
|
||||
|
||||
- job:
|
||||
name: airship-airshipctl-functional-existing-k8s
|
||||
pre-run: playbooks/airship-airshipctl-deploy-existing-k8s.yaml
|
||||
|
@ -14,11 +14,13 @@
|
||||
check:
|
||||
jobs:
|
||||
- airship-airshipctl-lint-unit
|
||||
- airship-airshipctl-build-image
|
||||
- airship-airshipctl-functional-existing-k8s
|
||||
- airship-airshipctl-gate-test
|
||||
gate:
|
||||
jobs:
|
||||
- airship-airshipctl-lint-unit
|
||||
- airship-airshipctl-build-image
|
||||
- airship-airshipctl-functional-existing-k8s
|
||||
- airship-airshipctl-gate-test
|
||||
post:
|
||||
|
Loading…
Reference in New Issue
Block a user