From 3f23d7ca329915a717bce89b9df95d8da10e590e Mon Sep 17 00:00:00 2001 From: Cédric Ollivier Date: Sat, 15 Sep 2018 13:08:31 +0200 Subject: Update .travis.yml to manage manifests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It has to be updated since functest-kubernetes supports arm64. Change-Id: I7726af24dd9a5ef29ed97003de64469cd27b1703 Signed-off-by: Cédric Ollivier --- .travis.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/.travis.yml b/.travis.yml index 75557e02..596c487b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,6 +5,8 @@ services: docker before_script: - sudo -E docker login -u="${DOCKER_USERNAME}" -p="${DOCKER_PASSWORD}" + - (cd .. && git clone https://github.com/estesp/manifest-tool) + - (cd ../manifest-tool && sudo -E make && sudo -E make install) jobs: include: @@ -13,17 +15,46 @@ jobs: env: - REPO="${DOCKER_USERNAME}" - amd64_dirs="docker/core" + - arm64_dirs="" + - stage: publish functest-kubernetes-core manifests + script: > + sudo manifest-tool push from-args \ + --platforms linux/amd64 \ + --template ${DOCKER_USERNAME}/functest-kubernetes-core:ARCH-latest \ + --target ${DOCKER_USERNAME}/functest-kubernetes-core:latest - stage: build functest-kubernetes-[healthcheck,features] image script: sudo -E bash build.sh env: - REPO="${DOCKER_USERNAME}" - amd64_dirs="docker/healthcheck" + - arm64_dirs="" - script: sudo -E bash build.sh env: - REPO="${DOCKER_USERNAME}" - amd64_dirs="docker/features" + - arm64_dirs="" + - stage: publish functest-kubernetes-[healthcheck,features] manifests + script: > + sudo manifest-tool push from-args \ + --platforms linux/amd64 \ + --template \ + ${DOCKER_USERNAME}/functest-kubernetes-healthcheck:ARCH-latest \ + --target ${DOCKER_USERNAME}/functest-kubernetes-healthcheck:latest + - script: > + sudo manifest-tool push from-args \ + --platforms linux/amd64 \ + --template \ + ${DOCKER_USERNAME}/functest-kubernetes-features:ARCH-latest \ + --target ${DOCKER_USERNAME}/functest-kubernetes-features:latest - stage: build functest-kubernetes-smoke image script: sudo -E bash build.sh env: - REPO="${DOCKER_USERNAME}" - amd64_dirs="docker/smoke" + - arm64_dirs="" + - stage: publish functest-kubernetes-smoke manifests + script: > + sudo manifest-tool push from-args \ + --platforms linux/amd64 \ + --template ${DOCKER_USERNAME}/functest-kubernetes-smoke:ARCH-latest \ + --target ${DOCKER_USERNAME}/functest-kubernetes-smoke:latest -- cgit 1.2.3-korg