diff --git a/.travis.yml b/.travis.yml index eb2862b4d..5bf1c889c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -84,7 +84,7 @@ jobs: - stage: build testing name: Build multi-architecture image for amd64 and arm64 script: - - travis_wait ./build-multi-arch-image.sh || travis_terminate 1; + - travis_wait ./scripts/build-multi-arch-image.sh || travis_terminate 1; - stage: build testing name: containerized test (Fedora) and build (CentOS) diff --git a/build-multi-arch-image.sh b/scripts/build-multi-arch-image.sh similarity index 97% rename from build-multi-arch-image.sh rename to scripts/build-multi-arch-image.sh index 1edf57880..4908be1ab 100755 --- a/build-multi-arch-image.sh +++ b/scripts/build-multi-arch-image.sh @@ -3,6 +3,8 @@ set -xe # "docker manifest" requires experimental feature enabled export DOCKER_CLI_EXPERIMENTAL=enabled +cd "$(dirname "${0}")/.." + # ceph base image used for building multi architecture images dockerfile="deploy/cephcsi/image/Dockerfile" baseimg=$(awk -F = '/^ARG BASE_IMAGE=/ {print $NF}' "${dockerfile}")