diff --git a/Makefile b/Makefile index 2052064b..8badd491 100644 --- a/Makefile +++ b/Makefile @@ -42,9 +42,12 @@ ifdef VERSION endif ifeq "$(DISTRO_SUFFIX)" "" - DOCKERFILE = "Dockerfiles/$(IMAGE_NAME)/Dockerfile" + # We expect that container is named 'porthole-xxxxx', and + # subdirectory is named 'xxxxx'; so we cut 'porthole-' from + # directory names here below and in next statement + DOCKERFILE = "Dockerfiles/$(subst porthole-,,$(IMAGE_NAME))/Dockerfile" else - DOCKERFILE = "Dockerfiles/$(IMAGE_NAME)/Dockerfile.$(DISTRO_SUFFIX)" + DOCKERFILE = "Dockerfiles/$(subst porthole-,,$(IMAGE_NAME))/Dockerfile.$(DISTRO_SUFFIX)" endif info: diff --git a/zuul.d/mysqlclient-utility.yaml b/zuul.d/mysqlclient-utility.yaml index 18ccd1a4..c7e6f90e 100644 --- a/zuul.d/mysqlclient-utility.yaml +++ b/zuul.d/mysqlclient-utility.yaml @@ -16,7 +16,7 @@ name: airship-porthole-images-build-gate-mysqlclient-utility parent: &parent airship-porthole-images vars: - image_name: &image_name mysqlclient-utility + image_name: &image_name porthole-mysqlclient-utility distro_suffix: &distro_suffix ubuntu_xenial files: - ^Dockerfiles/mysqlclient-utility/.*$