Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Merge pull request #9968 from EOSIO/egonz/release1.8.x
Browse files Browse the repository at this point in the history
Updated name to new Docker hub repo EOSIO instead EOS
  • Loading branch information
kj4ezj authored Jan 29, 2021
2 parents 8766987 + b3d2cdc commit defe9b5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .cicd/create-docker-from-binary.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,19 @@ echo "$SANITIZED_TAG"

# do docker build
echo ":docker::build: Building image..."
DOCKERHUB_REGISTRY="docker.io/eosio/eos"
DOCKERHUB_REGISTRY="docker.io/eosio/eosio"

BUILD_TAG=${BUILDKITE_BUILD_NUMBER:-latest}
DOCKER_BUILD_GEN="docker build -t eos_image:$BUILD_TAG -f ./docker/dockerfile ."
DOCKER_BUILD_GEN="docker build -t eosio_image:$BUILD_TAG -f ./docker/dockerfile ."
echo "$ $DOCKER_BUILD_GEN"
eval $DOCKER_BUILD_GEN

#tag and push on each destination AWS & DOCKERHUB

EOSIO_REGS=("$EOSIO_REGISTRY" "$DOCKERHUB_REGISTRY")
for REG in ${EOSIO_REGS[@]}; do
DOCKER_TAG_COMMIT="docker tag eos_image:$BUILD_TAG $REG:$BUILDKITE_COMMIT"
DOCKER_TAG_BRANCH="docker tag eos_image:$BUILD_TAG $REG:$SANITIZED_BRANCH"
DOCKER_TAG_COMMIT="docker tag eosio_image:$BUILD_TAG $REG:$BUILDKITE_COMMIT"
DOCKER_TAG_BRANCH="docker tag eosio_image:$BUILD_TAG $REG:$SANITIZED_BRANCH"
echo -e "$ Tagging Images: \n$DOCKER_TAG_COMMIT \n$DOCKER_TAG_BRANCH"
eval $DOCKER_TAG_COMMIT
eval $DOCKER_TAG_BRANCH
Expand All @@ -39,14 +39,14 @@ for REG in ${EOSIO_REGS[@]}; do
eval $CLEAN_IMAGE_COMMIT
eval $CLEAN_IMAGE_BRANCH
if [[ ! -z "$SANITIZED_TAG" ]]; then
DOCKER_TAG="docker tag eos_image $REG:$SANITIZED_TAG"
DOCKER_TAG="docker tag eosio_image $REG:$SANITIZED_TAG"
DOCKER_REM="docker rmi $REG:$SANITIZED_TAG"
echo -e "$ \n Tagging Image: \n$DOCKER_TAG \n Cleaning Up: \n$DOCKER_REM"
eval $DOCKER_TAG
eval $DOCKER_REM
fi
done

DOCKER_GEN="docker rmi eos_image:$BUILD_TAG"
DOCKER_GEN="docker rmi eosio_image:$BUILD_TAG"
echo "Clean up base image"
eval $DOCKER_GEN

0 comments on commit defe9b5

Please sign in to comment.