Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add arm64 support #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .ci/common
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@ slugify() {
echo "$1" | sed -r 's/[^.a-zA-Z0-9]+/-/g'
}

export ARCH=`uname -m`
export IMAGE="openebs/rawfile-localpv"
export COMMIT=$(git rev-parse --short HEAD)
export BRANCH=${TRAVIS_BRANCH:-$(git rev-parse --abbrev-ref HEAD)}
export BRANCH_SLUG=$(slugify $BRANCH)

export CI_REGISTRY="docker.io"
export CI_TAG="${COMMIT}-ci"
export CI_IMAGE_REPO="${CI_REGISTRY}/${IMAGE}"
export CI_IMAGE_REPO="${CI_REGISTRY}/${IMAGE}-${ARCH}"
export CI_IMAGE_URI="${CI_IMAGE_REPO}:${CI_TAG}"

function TagAndPushImage() {
Expand Down
1 change: 1 addition & 0 deletions .ci/e2e-test/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ sudo apt update && sudo apt install -y conntrack
curl -Lo minikube https://storage.googleapis.com/minikube/releases/v${MINIKUBE_VERSION}/minikube-linux-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/
mkdir -p $HOME/.kube $HOME/.minikube
touch $KUBECONFIG
sudo systemctl enable docker.service
sudo minikube start --profile=minikube --vm-driver=none --kubernetes-version=v${K8S_VERSION}
minikube update-context --profile=minikube
eval "$(minikube docker-env --profile=minikube)" && export DOCKER_CLI='docker'
Expand Down
21 changes: 21 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
os: linux
services:
- docker

dist: bionic
language: minimal
jobs:
Expand All @@ -18,3 +21,21 @@ jobs:
- KUBECONFIG=$HOME/.kube/config
- stage: publish
script: ./.ci/publish.sh
- stage: build-arm
arch: arm64
script: ./.ci/build.sh
- stage: e2e-test-arm
arch: arm64
install: ./.ci/e2e-test/setup.sh
if: tag IS present OR commit_message =~ /perform-e2e/
script: ./.ci/e2e-test/test.sh
env:
- CHANGE_MINIKUBE_NONE_USER=true
- MINIKUBE_WANTUPDATENOTIFICATION=false
- MINIKUBE_WANTREPORTERRORPROMPT=false
- MINIKUBE_HOME=$HOME
- CHANGE_MINIKUBE_NONE_USER=true
- KUBECONFIG=$HOME/.kube/config
- stage: publish-arm
arch: arm64
script: ./.ci/publish.sh
Comment on lines +24 to +41
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a code duplication to me. Do you think we could avoid that somehow?