Prepare Xtesting Leguer containers 01/71201/1
authorCédric Ollivier <cedric.ollivier@orange.com>
Sun, 4 Oct 2020 10:17:29 +0000 (12:17 +0200)
committerCédric Ollivier <cedric.ollivier@orange.com>
Sun, 4 Oct 2020 10:17:29 +0000 (12:17 +0200)
Change-Id: I4c7b01c5502b426f52e8492a5c322f0659900b0b
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
.travis.yml
ansible/site.yml
build.sh
docker/mts/Dockerfile

index 60eb112..089a129 100644 (file)
@@ -50,8 +50,8 @@ jobs:
       script: >
         sudo manifest-tool push from-args \
           --platforms linux/amd64,linux/arm,linux/arm64 \
-          --template ${DOCKER_USERNAME}/xtesting:ARCH-latest \
-          --target ${DOCKER_USERNAME}/xtesting:latest
+          --template ${DOCKER_USERNAME}/xtesting:ARCH-leguer \
+          --target ${DOCKER_USERNAME}/xtesting:leguer
     - stage: build xtesting-mts images
       script: sudo -E bash build.sh
       env:
@@ -71,5 +71,5 @@ jobs:
       script: >
         sudo manifest-tool push from-args \
           --platforms linux/amd64,linux/arm64 \
-          --template ${DOCKER_USERNAME}/xtesting-mts:ARCH-latest \
-          --target ${DOCKER_USERNAME}/xtesting-mts:latest
+          --template ${DOCKER_USERNAME}/xtesting-mts:ARCH-leguer \
+          --target ${DOCKER_USERNAME}/xtesting-mts:leguer
index 3f49628..c93949c 100644 (file)
@@ -2,6 +2,9 @@
 - hosts: 127.0.0.1
   roles:
     - role: collivier.xtesting
+      docker_tags:
+        - leguer:
+            branch: stable/leguer
       builds:
         dependencies:
           - repo: _
index f6aaa49..f4c7c20 100644 (file)
--- a/build.sh
+++ b/build.sh
@@ -17,7 +17,7 @@ docker/core \
 docker/mts"}
 arm_dirs=${arm_dirs-${amd64_dirs}}
 arm64_dirs=${arm64_dirs-${amd64_dirs}}
-tag=${BRANCH:-latest}
+tag=${BRANCH:-leguer}
 image="xtesting"
 build_opts=(--pull=true --no-cache --force-rm=true)
 
@@ -26,15 +26,15 @@ for arch in ${arch}; do
         find . -name Dockerfile -exec sed -i \
             -e "s|alpine:3.12|arm64v8/alpine:3.12|g" {} +
         find . -name Dockerfile -exec sed -i \
-            -e "s|opnfv/xtesting|${repo}/xtesting:arm64-${tag}|g" {} +
+            -e "s|opnfv/xtesting:${tag}|${repo}/xtesting:arm64-${tag}|g" {} +
     elif [[ ${arch} == arm ]]; then
         find . -name Dockerfile -exec sed -i \
             -e "s|alpine:3.12|arm32v6/alpine:3.12|g" {} +
         find . -name Dockerfile -exec sed -i \
-            -e "s|opnfv/xtesting|${repo}/xtesting:arm-${tag}|g" {} +
+            -e "s|opnfv/xtesting:${tag}|${repo}/xtesting:arm-${tag}|g" {} +
     else
         find . -name Dockerfile -exec sed -i \
-            -e "s|opnfv/xtesting|${repo}/xtesting:amd64-${tag}|g" {} +
+            -e "s|opnfv/xtesting:${tag}|${repo}/xtesting:amd64-${tag}|g" {} +
     fi
     dirs=${arch}_dirs
     for dir in ${!dirs}; do
index 597e4f4..6607ad6 100644 (file)
@@ -1,4 +1,4 @@
-FROM opnfv/xtesting
+FROM opnfv/xtesting:leguer
 
 ARG MTS_TAG=6.6.3
 ARG APP_FOLDER=/opt/mts