aboutsummaryrefslogtreecommitdiffstats
path: root/.travis.yml
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2018-09-15 13:08:31 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2018-09-15 15:12:30 +0200
commitfd4d290489fe7a90c1b589d7d510de44ebc62450 (patch)
tree003e156e68d690a39253b87c1fde84a5afcfbe0f /.travis.yml
parent8ebe2d4aeb952931515f82f50d475a677394b6c6 (diff)
Update .travis.yml to manage manifests
It has to be updated since functest-kubernetes supports arm64. Change-Id: I7726af24dd9a5ef29ed97003de64469cd27b1703 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml31
1 files changed, 31 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index 75557e02..d999c6b3 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-gambia \
+ --target ${DOCKER_USERNAME}/functest-kubernetes-core:gambia
- 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-gambia \
+ --target ${DOCKER_USERNAME}/functest-kubernetes-healthcheck:gambia
+ - script: >
+ sudo manifest-tool push from-args \
+ --platforms linux/amd64 \
+ --template \
+ ${DOCKER_USERNAME}/functest-kubernetes-features:ARCH-gambia \
+ --target ${DOCKER_USERNAME}/functest-kubernetes-features:gambia
- 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-gambia \
+ --target ${DOCKER_USERNAME}/functest-kubernetes-smoke:gambia