From 23f47aac384c4a8af0317e546a7f1ef16734bad4 Mon Sep 17 00:00:00 2001 From: naskya <m@naskya.net> Date: Sat, 18 May 2024 14:16:31 +0900 Subject: [PATCH] ci: buildah prune before build --- .gitlab-ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2e973b55b5..65f62e2f09 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -184,7 +184,8 @@ build:container: before_script: - apt-get update && apt-get -y upgrade - apt-get install -y --no-install-recommends buildah ca-certificates fuse-overlayfs - - buildah login --username "${CI_REGISTRY_USER}" --password "${CI_REGISTRY_PASSWORD}" "${CI_REGISTRY}" + - buildah prune --all + - echo "${CI_REGISTRY_PASSWORD}" | buildah login --username "${CI_REGISTRY_USER}" --password-stdin "${CI_REGISTRY}" - export IMAGE_TAG="${CI_REGISTRY}/${CI_PROJECT_PATH}/develop:not-for-production" - export IMAGE_CACHE="${CI_REGISTRY}/${CI_PROJECT_PATH}/develop/cache" script: