Skip to content

Commit

Permalink
fix ci image tag
Browse files Browse the repository at this point in the history
Signed-off-by: prateekpandey14 <[email protected]>
  • Loading branch information
prateekpandey14 committed Apr 8, 2021
1 parent e6688b8 commit 8b86a3b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ install: true
- make format

before_script:
- curl -Lo kubectl https://storage.googleapis.com/kubernetes-release/release/v1.20.1/bin/linux/amd64/kubectl
- curl -Lo kubectl https://storage.googleapis.com/kubernetes-release/release/v1.18.0/bin/linux/amd64/kubectl
&& chmod +x kubectl && sudo mv kubectl /usr/local/bin/
- curl -Lo minikube https://storage.googleapis.com/minikube/releases/v1.16.0/minikube-linux-amd64
- curl -Lo minikube https://storage.googleapis.com/minikube/releases/v1.8.1/minikube-linux-amd64
&& chmod +x minikube && sudo mv minikube /usr/local/bin/
- mkdir -p $HOME/.kube $HOME/.minikube
- touch $KUBECONFIG
- sudo minikube start --profile=minikube --vm-driver=none --kubernetes-version=v1.20.1
- sudo minikube start --profile=minikube --vm-driver=none --kubernetes-version=v1.18.1
- minikube update-context --profile=minikube
- "sudo chown -R travis: /home/travis/.minikube/"
- eval "$(minikube docker-env --profile=minikube)" && export DOCKER_CLI='docker'
Expand Down
10 changes: 4 additions & 6 deletions ci/build-maya.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,10 @@ IMAGE_ORG=${IMAGE_ORG:-openebs}
set -e
# If any of the images aren't present the script will exit returning
# a non zero exit code, which will result in a build failure.
if [ ${CI_TAG} != "ci" ]; then
sudo docker tag ${IMAGE_ORG}/m-apiserver-amd64:ci ${IMAGE_ORG}/m-apiserver:${CI_TAG}
sudo docker tag ${IMAGE_ORG}/cstor-pool-mgmt-amd64:ci ${IMAGE_ORG}/cstor-pool-mgmt:${CI_TAG}
sudo docker tag ${IMAGE_ORG}/cstor-volume-mgmt-amd64:ci ${IMAGE_ORG}/cstor-volume-mgmt:${CI_TAG}
sudo docker tag ${IMAGE_ORG}/admission-server-amd64:ci ${IMAGE_ORG}/admission-server:${CI_TAG}
fi
sudo docker tag ${IMAGE_ORG}/m-apiserver-amd64:ci ${IMAGE_ORG}/m-apiserver:${CI_TAG}
sudo docker tag ${IMAGE_ORG}/cstor-pool-mgmt-amd64:ci ${IMAGE_ORG}/cstor-pool-mgmt:${CI_TAG}
sudo docker tag ${IMAGE_ORG}/cstor-volume-mgmt-amd64:ci ${IMAGE_ORG}/cstor-volume-mgmt:${CI_TAG}
sudo docker tag ${IMAGE_ORG}/admission-server-amd64:ci ${IMAGE_ORG}/admission-server:${CI_TAG}

#Tag the images with quay.io, since the operator can either have quay or docker images
#Note the quay tags are hard-coded to help with CI scripts that might use the quay.io/openebs prefix
Expand Down

0 comments on commit 8b86a3b

Please sign in to comment.