From 4f0a2e1b6a0fcfcb71f330d640b88c8096e7a311 Mon Sep 17 00:00:00 2001 From: Jens Steidl <Jens.Steidl@slub-dresden.de> Date: Fri, 29 Sep 2023 12:18:42 +0200 Subject: [PATCH] - refactor: rename stages, moved to top --- .gitlab-ci.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 051a55a..7f1a165 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,3 +1,9 @@ +stages: # List of stages for jobs, and their order of execution + - build-env + - build-verapdf + - package-verapdf + - test-package + variables: VERAPDF_VERSION: "1.24.1" DOCKERFILE_DEB: "${CI_PROJECT_DIR}/gitlab-ci/Dockerfile_DEB" @@ -5,12 +11,6 @@ variables: IMAGE_TARGET_DEB: "${CI_REGISTRY_IMAGE}/debian12_verapdf_build_env" INSTALL_PATH_DEB: "/usr/local/verapdf" -stages: # List of stages for jobs, and their order of execution - - build-env - - local-install - - package - - install-test - .build-env-job: stage: build-env timeout: 10m @@ -48,7 +48,7 @@ build-debian-env-job: IMAGE_TARGET: ${IMAGE_TARGET_DEB} local-install-debian-job: # This job runs in the test stage. - stage: local-install # It only starts when the job in the build stage completes successfully. + stage: build-verapdf # It only starts when the job in the build stage completes successfully. timeout: 5m tags: - "docker" @@ -75,7 +75,7 @@ local-install-debian-job: # This job runs in the test stage. - CALL_VERAPDF=$("${INSTALL_PATH_DEB}/verapdf" --version | grep "${VERAPDF_VERSION}") package-debian-job: - stage: package + stage: package-verapdf timeout: 5m image: name: "${IMAGE_TARGET_DEB}:latest" @@ -108,7 +108,7 @@ package-debian-job: - "*.deb" test-install-debian-job: - stage: test-install + stage: test-package timeout: 5m image: # HINT: debian base image to simulate an installation target -- GitLab