diff options
| author | Zuul <zuul@review.opendev.org> | 2020-01-16 12:21:41 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2020-01-16 12:21:42 +0000 |
| commit | c10f9d7acf2fd3be2ad09c6c148d429d6b4c4268 (patch) | |
| tree | fcabf4fca8d2b8a9cccabd9fa3723d855ae85215 | |
| parent | 21af8d86f3e6629ab3d53e9547c2f0868dfc339d (diff) | |
| parent | b66f144c42f54690fd23406c770cffd6a2a60bae (diff) | |
| download | kolla-c10f9d7acf2fd3be2ad09c6c148d429d6b4c4268.tar.gz kolla-c10f9d7acf2fd3be2ad09c6c148d429d6b4c4268.zip | |
Merge "Revert "Add AArch64 publisher for Debian/source""
| -rw-r--r-- | .zuul.d/debian.yaml | 27 | ||||
| -rw-r--r-- | tests/playbooks/publish-multiarch.yml | 24 | ||||
| -rwxr-xr-x | tools/create-multiarch-images.sh | 32 |
3 files changed, 3 insertions, 80 deletions
diff --git a/.zuul.d/debian.yaml b/.zuul.d/debian.yaml index 9a3d92c01..42df7237c 100644 --- a/.zuul.d/debian.yaml +++ b/.zuul.d/debian.yaml @@ -10,15 +10,11 @@ - kolla-build-debian-source-aarch64 periodic: jobs: - - kolla-publish-debian-source-multiarch-aarch64 - - kolla-publish-debian-source-multiarch-x86_64 - - kolla-publish-debian-source-multiarch + - kolla-publish-debian-source release: jobs: + - kolla-publish-debian-source - kolla-publish-debian-binary - - kolla-publish-debian-source-multiarch-aarch64 - - kolla-publish-debian-source-multiarch-x86_64 - - kolla-publish-debian-source-multiarch - job: name: kolla-build-debian-source @@ -60,27 +56,10 @@ - kolla_dockerhub_creds - job: - name: kolla-publish-debian-source-multiarch-x86_64 + name: kolla-publish-debian-source parent: kolla-build-debian-source post-run: tests/playbooks/publish.yml vars: publisher: true secrets: - kolla_dockerhub_creds - -- job: - name: kolla-publish-debian-source-multiarch-aarch64 - parent: kolla-publish-debian-source-multiarch-x86_64 - nodeset: kolla-debian-buster-aarch64 - -- job: - name: kolla-publish-debian-source-multiarch - parent: base - run: tests/playbooks/publish-multiarch.yml - vars: - publisher: true - secrets: - - kolla_dockerhub_creds - dependencies: - - kolla-publish-debian-source-multiarch-aarch64 - - kolla-publish-debian-source-multiarch-x86_64 diff --git a/tests/playbooks/publish-multiarch.yml b/tests/playbooks/publish-multiarch.yml deleted file mode 100644 index 853235f6c..000000000 --- a/tests/playbooks/publish-multiarch.yml +++ /dev/null @@ -1,24 +0,0 @@ ---- -- hosts: all - tasks: - - name: Login to Dockerhub - command: "docker login -u {{ kolla_dockerhub_creds.user }} -p {{ kolla_dockerhub_creds.password }}" - no_log: true - - - name: Ensure ~/.docker exists - file: - path: ~/.docker - state: directory - mode: 0777 - - - name: Enable experimental features in Docker so we can use 'docker manifest' - copy: - content: '{ "experimental": "enabled" }' - dest: ~/.docker/config.json - - - name: Define image tag - set_fact: - image_tag: zuul.branch | regex_replace('^stable/', '') - - - name: Create multiarch images - command: "TAG={{ image_tag }} NAMESPACE=kolla DISTRO={{ base_distro }} TYPE={{ install_type }} tools/create-multiarch-images.sh" diff --git a/tools/create-multiarch-images.sh b/tools/create-multiarch-images.sh deleted file mode 100755 index 11e0aa7c3..000000000 --- a/tools/create-multiarch-images.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/bash - -# This script takes aarch64 and x86_64 images from our publish jobs and makes -# multiarch containers so users of any of those architectures can pull them. - -TARGET=${NAMESPACE}/${DISTRO}-${TYPE} -TMP=$(mktemp -d) - -for arch in aarch64 x86_64; do - tools/build.py --base ${DISTRO} --type ${TYPE} --base-arch $arch --list-images|sed -e 's/^.* : //g'|sort >${TMP}/images-$arch -done - -comm -12 ${TMP}/images-aarch64 ${TMP}/images-x86_64 >${TMP}/list-of-common-images -comm -13 ${TMP}/images-aarch64 ${TMP}/images-x86_64 >${TMP}/list-of-x86_64-only-images -comm -23 ${TMP}/images-aarch64 ${TMP}/images-x86_64 >${TMP}/list-of-aarch64-only-images - - -for image_name in $(cat ${TMP}/list-of-common-images); do - docker manifest create ${TARGET}-${image_name}:${TAG} ${TARGET}-${image_name}:${TAG}-aarch64 ${TARGET}-${image_name}:${TAG}-x86_64 -done - -for image_name in $(cat ${TMP}/list-of-x86_64-only-images); do - docker manifest create ${TARGET}-${image_name}:${TAG} ${TARGET}-${image_name}:${TAG}-x86_64 -done - -for image_name in $(cat ${TMP}/list-of-aarch64-only-images); do - docker manifest create ${TARGET}-${image_name}:${TAG} ${TARGET}-${image_name}:${TAG}-aarch64 -done - -for image_name in $(cat ${TMP}/list-of-*); do - docker manifest push ${TARGET}-${image_name}:${TAG} -done |
