Skip to content

Commit

Permalink
devtools added
Browse files Browse the repository at this point in the history
  • Loading branch information
RaymondMouthaan committed Aug 25, 2019
1 parent 01d8ff0 commit bc47f12
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 21 deletions.
14 changes: 5 additions & 9 deletions .docker/docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,10 @@ docker_test() {
docker_tag() {
echo "DOCKER TAG: Tag Docker image."

if [ ${TAG_SUFFIX} == "default" ]; then
echo "DOCKER TAG: tagging image - ${TARGET}:${BUILD_VERSION}-${NODE_VERSION}-${ARCH}."
docker tag ${TARGET}:build ${TARGET}:${BUILD_VERSION}-${NODE_VERSION}-${ARCH}
else
echo "DOCKER TAG: tagging image - ${TARGET}:${BUILD_VERSION}-${NODE_VERSION}-${ARCH}-${TAG_SUFFIX}"
docker tag ${TARGET}:build ${TARGET}:${BUILD_VERSION}-${NODE_VERSION}-${ARCH}-${TAG_SUFFIX}
fi
if [ ${TAG_SUFFIX} == "default" ]; then export TAG_SUFFIX = ""; else export TAG_SUFFIX = "-${TAG_SUFFIX}"; fi

echo "DOCKER TAG: tagging image - ${TARGET}:${BUILD_VERSION}-${NODE_VERSION}-${ARCH}${TAG_SUFFIX}"
docker tag ${TARGET}:build ${TARGET}:${BUILD_VERSION}-${NODE_VERSION}-${ARCH}${TAG_SUFFIX}
}

docker_push() {
Expand Down Expand Up @@ -236,8 +232,8 @@ docker_manifest_list_version() {
# arg 1 holds node version
# arg 2 holds tag suffix

if [[ ${1} == "" ]]; then export NODE_VERSION "${1}"; else export NODE_VERSION "-${1}"; fi
if [[ ${2} == "" ]]; then export TAG_SUFFIX "${2}"; else export TAG_SUFFIX "-${2}"; fi
if [[ ${1} == "" ]]; then export NODE_VERSION=""; else export NODE_VERSION="-${1}"; fi
if [[ ${2} == "default" ]]; then export TAG_SUFFIX=""; else export TAG_SUFFIX="-${2}"; fi

echo "DOCKER MANIFEST: Create and Push docker manifest list - ${TARGET}:${BUILD_VERSION}${NODE_VERSION}${TAG_SUFFIX}."

Expand Down
34 changes: 22 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,17 @@ env:
- DOCKER_FILE=Dockerfile.alpine NODE_VERSION=10 PYTHON_VERSION=3 DEVTOOLS=0 TAG_SUFFIX=default OS=alpine QEMU_ARCH=arm ARCH=arm32v7
- DOCKER_FILE=Dockerfile.alpine NODE_VERSION=10 PYTHON_VERSION=3 DEVTOOLS=0 TAG_SUFFIX=default OS=alpine QEMU_ARCH=aarch64 ARCH=arm64v8

# Minimal Images
- DOCKER_FILE=Dockerfile.alpine NODE_VERSION=10 PYTHON_VERSION=0 DEVTOOLS=0 TAG_SUFFIX=minimal OS=alpine QEMU_ARCH=x86_64 ARCH=amd64
- DOCKER_FILE=Dockerfile.alpine NODE_VERSION=10 PYTHON_VERSION=0 DEVTOOLS=0 TAG_SUFFIX=minimal OS=alpine QEMU_ARCH=arm ARCH=arm32v6
- DOCKER_FILE=Dockerfile.alpine NODE_VERSION=10 PYTHON_VERSION=0 DEVTOOLS=0 TAG_SUFFIX=minimal OS=alpine QEMU_ARCH=arm ARCH=arm32v7
- DOCKER_FILE=Dockerfile.alpine NODE_VERSION=10 PYTHON_VERSION=0 DEVTOOLS=0 TAG_SUFFIX=minimal OS=alpine QEMU_ARCH=aarch64 ARCH=arm64v8

# # Devtools Images
- DOCKER_FILE=Dockerfile.alpine NODE_VERSION=10 PYTHON_VERSION=3 DEVTOOLS=1 TAG_SUFFIX=devtools OS=alpine QEMU_ARCH=x86_64 ARCH=amd64
- DOCKER_FILE=Dockerfile.alpine NODE_VERSION=10 PYTHON_VERSION=3 DEVTOOLS=1 TAG_SUFFIX=devtools OS=alpine QEMU_ARCH=arm ARCH=arm32v6
- DOCKER_FILE=Dockerfile.alpine NODE_VERSION=10 PYTHON_VERSION=3 DEVTOOLS=1 TAG_SUFFIX=devtools OS=alpine QEMU_ARCH=arm ARCH=arm32v7
- DOCKER_FILE=Dockerfile.alpine NODE_VERSION=10 PYTHON_VERSION=3 DEVTOOLS=1 TAG_SUFFIX=devtools OS=alpine QEMU_ARCH=aarch64 ARCH=arm64v8
# # Minimal Images
# - DOCKER_FILE=Dockerfile.alpine NODE_VERSION=10 PYTHON_VERSION=0 DEVTOOLS=0 TAG_SUFFIX=minimal OS=alpine QEMU_ARCH=x86_64 ARCH=amd64
# - DOCKER_FILE=Dockerfile.alpine NODE_VERSION=10 PYTHON_VERSION=0 DEVTOOLS=0 TAG_SUFFIX=minimal OS=alpine QEMU_ARCH=arm ARCH=arm32v6
# - DOCKER_FILE=Dockerfile.alpine NODE_VERSION=10 PYTHON_VERSION=0 DEVTOOLS=0 TAG_SUFFIX=minimal OS=alpine QEMU_ARCH=arm ARCH=arm32v7
# - DOCKER_FILE=Dockerfile.alpine NODE_VERSION=10 PYTHON_VERSION=0 DEVTOOLS=0 TAG_SUFFIX=minimal OS=alpine QEMU_ARCH=aarch64 ARCH=arm64v8
#
## # Devtools Images
# - DOCKER_FILE=Dockerfile.alpine NODE_VERSION=10 PYTHON_VERSION=3 DEVTOOLS=1 TAG_SUFFIX=devtools OS=alpine QEMU_ARCH=x86_64 ARCH=amd64
# - DOCKER_FILE=Dockerfile.alpine NODE_VERSION=10 PYTHON_VERSION=3 DEVTOOLS=1 TAG_SUFFIX=devtools OS=alpine QEMU_ARCH=arm ARCH=arm32v6
# - DOCKER_FILE=Dockerfile.alpine NODE_VERSION=10 PYTHON_VERSION=3 DEVTOOLS=1 TAG_SUFFIX=devtools OS=alpine QEMU_ARCH=arm ARCH=arm32v7
# - DOCKER_FILE=Dockerfile.alpine NODE_VERSION=10 PYTHON_VERSION=3 DEVTOOLS=1 TAG_SUFFIX=devtools OS=alpine QEMU_ARCH=aarch64 ARCH=arm64v8

# # Python 2 Images
# - DOCKER_FILE=Dockerfile.alpine NODE_VERSION=10 PYTHON_VERSION=2 DEVTOOLS=0 TAG_SUFFIX=python2 OS=alpine QEMU_ARCH=x86_64 ARCH=amd64
Expand Down Expand Up @@ -120,11 +120,21 @@ jobs:
# - echo "Create manifest list for Node 10 docker images."
# - ./.docker/docker.sh manifest-list "-10"

# Create manifest list for default
# Create and push manifest list for default
- echo "Create manifest list for Node 10 docker images."
- ./.docker/docker.sh manifest-list "" "default"
- ./.docker/docker.sh manifest-list "10" "default"

# # Create and push manifest list for minimal
# - echo "Create manifest list for Node 10 docker images."
# - ./.docker/docker.sh manifest-list "" "minimal"
# - ./.docker/docker.sh manifest-list "10" "minimal"
#
# # Create and push manifest list for devtools
# - echo "Create manifest list for Node 10 docker images."
# - ./.docker/docker.sh manifest-list "" "devtools"
# - ./.docker/docker.sh manifest-list "10" "devtools"

# Docker Logout
- docker logout

Expand Down

0 comments on commit bc47f12

Please sign in to comment.