This repository has been archived by the owner on Feb 14, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
36 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,13 @@ | ||
#!/bin/bash | ||
|
||
if ! [ $# -eq 3 ] ; then | ||
echo "Requires three parameters: the docker user, the docker repository, the architecture it's for. It'll automatically be tagged for 6 and then 8, using the right Dockerfiles for each build." | ||
echo "E.g. ./PublishChart.sh ibmrt ibmcom amd64" | ||
if ! [ $# -eq 1 ] ; then | ||
echo "Requires one arg, the arch to build on." | ||
echo "E.g. ./PublishChart.sh amd64|ppc64le|s390x" | ||
exit; | ||
fi | ||
|
||
# e.g. ibmrt | ||
docker_user=$1 | ||
arch=$1 | ||
|
||
# e.g. ibmcom | ||
docker_repo=$2 | ||
|
||
# e.g. amd64, s390x, ppc64le | ||
arch=$3 | ||
|
||
# e.g. ./BuildAndPushDockerhub.sh icp-nodejs-sample-amd64 1.0.0 ibmcom yourusername docker-6/Dockerfile" | ||
|
||
./BuildAndPushDockerhub.sh icp-nodejs-sample-$arch 6 $docker_repo $docker_user docker-6/Dockerfile | ||
./BuildAndPushDockerhub.sh icp-nodejs-sample-$arch 8 $docker_repo $docker_user docker-8/Dockerfile | ||
# if ibmcom, log in to ibmrt first | ||
./BuildAndPushDockerhub.sh icp-nodejs-sample-$arch 6 ibmcom docker-6/Dockerfile | ||
./BuildAndPushDockerhub.sh icp-nodejs-sample-$arch 8 ibmcom docker-8/Dockerfile |