From d2db39499f2c5d253143f5589f0d634512af1b1a Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Fri, 21 Feb 2025 18:12:56 -0500 Subject: [PATCH] ci: Bump to latest buildah The platform-engineering include is using a truly ancient buildah image. Stop including that and bump to the latest. Signed-off-by: Colin Walters --- .gitlab-ci.yml | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 08c0ffe..cb0af33 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,6 +1,24 @@ --- -include: - - remote: https://gitlab.com/platform-engineering-org/gitlab-ci/-/raw/main/templates/build-image.gitlab-ci.yml +stages: + - build + +variables: + IMAGE: ${CI_REGISTRY}/${CI_PROJECT_PATH}:${CI_COMMIT_SHA} + CONTAINERFILE: Containerfile + CONTEXT: . + EXTRA_ARGS: "" + +.build-image: + stage: build + image: quay.io/buildah/stable:v1.38.0 + needs: [] + script: buildah bud -f ${CONTAINERFILE} --no-cache -t ${IMAGE} ${EXTRA_ARGS} ${CONTEXT} + rules: + - if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS && $CI_PIPELINE_SOURCE == "push" + when: never + - if: $CI_PIPELINE_SOURCE == "merge_request_event" + - if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS + when: never build-image: extends: .build-image