From bf5e5c75428944b7f63687ab1714dd3894653a4a Mon Sep 17 00:00:00 2001 From: Armando Diaz Date: Thu, 16 Oct 2025 14:52:00 -0500 Subject: [PATCH] build container test --- .gitlab-ci.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8e29d91..965f30f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,6 @@ stages: - test + - build-container # Test stage test: @@ -10,4 +11,17 @@ test: - npm config set registry https://deps.global.bsf.tools/artifactory/api/npm/registry.npmjs.org/ - npm config set strict-ssl false - npm config fix - - npm install \ No newline at end of file + - npm install + +build_container: + stage: build + image: deps.global.bsf.tools/quay.io/buildah/stable:latest + variables: + IMAGE_NAME: "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA" + before_script: + - mkdir -p /tmp/buildah-storage + - export BUILDAH_ROOT="/tmp/buildah-storage" + - echo "$CI_REGISTRY_PASSWORD" | buildah login -u "$CI_REGISTRY_USER" --password-stdin "$CI_REGISTRY" + script: + - buildah bud --build-arg NPM_REGISTRY=https://deps.global.bsf.tools/artifactory/api/npm/registry.npmjs.org/ --storage-driver vfs --isolation chroot -t $IMAGE_NAME . + - buildah push --storage-driver vfs $IMAGE_NAME \ No newline at end of file