Only build/release P/Z platforms for developer image

This commit is contained in:
Luke J Powlett
2020-03-17 12:08:28 +00:00
parent c1cbb62ee1
commit d9c8fc5c78
8 changed files with 63 additions and 29 deletions

View File

@@ -1,6 +1,6 @@
#!/bin/bash
# © Copyright IBM Corporation 2019
# © Copyright IBM Corporation 2019, 2020
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -23,7 +23,9 @@ echo 'Building Developer image...' && echo -en 'travis_fold:start:build-devserve
make build-devserver
echo -en 'travis_fold:end:build-devserver\\r'
if [ "$BUILD_ALL" = true ] ; then
echo 'Building Production image...' && echo -en 'travis_fold:start:build-advancedserver\\r'
make build-advancedserver
echo -en 'travis_fold:end:build-advancedserver\\r'
if [ "$ARCH" = "amd64" ] ; then
echo 'Building Production image...' && echo -en 'travis_fold:start:build-advancedserver\\r'
make build-advancedserver
echo -en 'travis_fold:end:build-advancedserver\\r'
fi
fi

View File

@@ -1,6 +1,6 @@
#!/bin/bash
# © Copyright IBM Corporation 2019
# © Copyright IBM Corporation 2019, 2020
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -32,9 +32,11 @@ function push_developer {
}
function push_production {
echo 'Pushing Production image...' && echo -en 'travis_fold:start:push-advancedserver\\r'
make push-advancedserver
echo -en 'travis_fold:end:push-advancedserver\\r'
if [ "$ARCH" = "amd64" ] ; then
echo 'Pushing Production image...' && echo -en 'travis_fold:start:push-advancedserver\\r'
make push-advancedserver
echo -en 'travis_fold:end:push-advancedserver\\r'
fi
}
# call relevant push function

View File

@@ -1,6 +1,6 @@
#!/bin/bash
# © Copyright IBM Corporation 2019
# © Copyright IBM Corporation 2019, 2020
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -18,7 +18,7 @@ set -e
# staging or production
TYPE=""
MANIFEST_FILE=manifest-9.1.4.yaml
MANIFEST_FILE=manifest-9.1.5.yaml
# set type of release
if [ ! -z $1 ]; then
@@ -42,8 +42,8 @@ ARCH=ppc64le make pull-devserver
ARCH=s390x make pull-devserver
ARCH=amd64 make pull-advancedserver
ARCH=ppc64le make pull-advancedserver
ARCH=s390x make pull-advancedserver
# ARCH=ppc64le make pull-advancedserver
# ARCH=s390x make pull-advancedserver
function set_staging_registry {
@@ -73,8 +73,8 @@ if [ "$TYPE" = "staging" ]; then
# push production images to staging registy
./travis-build-scripts/push.sh production amd64
./travis-build-scripts/push.sh production ppc64le
./travis-build-scripts/push.sh production s390x
# ./travis-build-scripts/push.sh production ppc64le
# ./travis-build-scripts/push.sh production s390x
elif [ "$TYPE" = "production" ]; then
@@ -82,8 +82,8 @@ elif [ "$TYPE" = "production" ]; then
set_staging_registry
ARCH=amd64 make pull-advancedserver
ARCH=ppc64le make pull-advancedserver
ARCH=s390x make pull-advancedserver
# ARCH=ppc64le make pull-advancedserver
# ARCH=s390x make pull-advancedserver
# release developer image with fat manifest
set_docker_hub
@@ -103,6 +103,6 @@ elif [ "$TYPE" = "production" ]; then
set_production_registry
./travis-build-scripts/push.sh production amd64
./travis-build-scripts/push.sh production ppc64le
./travis-build-scripts/push.sh production s390x
# ./travis-build-scripts/push.sh production ppc64le
# ./travis-build-scripts/push.sh production s390x
fi

View File

@@ -1,6 +1,6 @@
#!/bin/bash
# © Copyright IBM Corporation 2019
# © Copyright IBM Corporation 2019, 2020
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.

View File

@@ -1,6 +1,6 @@
#!/bin/bash
# © Copyright IBM Corporation 2019
# © Copyright IBM Corporation 2019, 2020
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -20,9 +20,11 @@ echo 'Testing Developer image...' && echo -en 'travis_fold:start:test-devserver\
make test-devserver
echo -en 'travis_fold:end:test-devserver\\r'
if [ "$BUILD_ALL" = true ] ; then
echo 'Testing Production image...' && echo -en 'travis_fold:start:test-advancedserver\\r'
make test-advancedserver
echo -en 'travis_fold:end:test-advancedserver\\r'
if [ "$ARCH" = "amd64" ] ; then
echo 'Testing Production image...' && echo -en 'travis_fold:start:test-advancedserver\\r'
make test-advancedserver
echo -en 'travis_fold:end:test-advancedserver\\r'
fi
fi
echo 'Running gosec scan...' && echo -en 'travis_fold:start:gosec-scan\\r'
if [ "$ARCH" = "amd64" ] ; then