images/.zuul.yaml
Sean Eagan e7944528be Fix image publish split
When the image publish job was split [0], only the last variant
of the job (commit hash) was being utilized [1], resulting in the
latest tag no longer being pushed [2]. This fixes this
by creating separate jobs instead of just separate job variants.

[0]: https://review.opendev.org/c/airship/images/+/784703
[1]: https://zuul.openstack.org/builds?job_name=airship-images-publish
[2]: https://quay.io/repository/airshipit/qcow-bundle?tag=latest-ubuntu_focal&tab=tags

Signed-off-by: Sean Eagan <seaneagan1@gmail.com>
Change-Id: Ib5359bafa7699658ee7247b1739929397a489167
2021-04-19 15:05:04 -05:00

181 lines
8.5 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:
vars:
docker_registry: quay.io
gcp_sdk: gcr.io/google.com/cloudsdktool/cloud-sdk:308.0.0
az_sdk: mcr.microsoft.com/azure-cli:2.8.0
proxy:
enabled: false
http: ""
https: ""
noproxy: ""
makefile_chdir: "{{ zuul.project.src_dir }}"
image_config_dir: manifests
image_prefix: airshipit
image_label: org.airshipit.build=community
image_tag: latest
check:
jobs:
- airship-images-functional
- airship-images-build
gate:
jobs:
- airship-images-functional
- airship-images-build
post:
jobs:
- images-upload-git-mirror
- airship-images-publish-latest
- airship-images-publish-commit
tag:
jobs:
- images-upload-git-mirror
- job:
name: airship-images-functional
nodeset: airship-images-single-node
pre-run: playbooks/airship-images-deploy-docker.yaml
run: playbooks/airship-images-test.yaml
post-run: playbooks/airship-collect-logs.yaml
- job:
name: airship-images-build
nodeset: airship-images-single-node
timeout: 7200
post-timeout: 7200
pre-run: playbooks/airship-images-deploy-docker.yaml
run: playbooks/airship-images-build.yaml
post-run: playbooks/airship-collect-logs.yaml
- job:
name: airship-images-publish-latest
nodeset: airship-images-single-node
timeout: 7200
post-timeout: 7200
pre-run: playbooks/airship-images-deploy-docker.yaml
run: playbooks/airship-images-publish.yaml
secrets:
- name: airship_images_quay_creds
secret: airship_images_quay_creds
- job:
name: airship-images-publish-commit
parent: airship-images-publish-latest
vars:
image_tag: "{{ zuul.newrev }}"
- job:
name: images-upload-git-mirror
parent: upload-git-mirror
description: Mirrors airship/images to airshipit/images
vars:
git_mirror_repository: airshipit/images
secrets:
- name: git_mirror_credentials
secret: images_airshipit_github_secret
pass-to-parent: true
- nodeset:
name: airship-images-single-node
nodes:
- name: primary
label: ubuntu-bionic
# We use this as a way to schedule to nodes with SSDs. SSDs are needed
# to build this project to avoid timeouts we see on slower HDDs. This is an INDIRECT
# way to schedule to SSDs. We have no need for 32GB of RAM. We need fast disks which
# we can't seem to guarantee any other way. It just so happens that all of nodes in
# the 32GB pool also have SSDs which can build this project in a reasonable amount
# of time.
- nodeset:
name: airship-images-single-node-32GB
nodes:
- name: primary
label: ubuntu-bionic-32GB
- secret:
name: images_airshipit_github_secret
data:
user: git
host: github.com
host_key: github.com ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ==
ssh_key: !encrypted/pkcs1-oaep
- pa5ZxQ/7y5rmaUzBaDZBw59pQpc94YXnMPM7P04/40eQmCuw6WAwactVfi3pTLN+oc4PP
pGssXm4W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