attempt at persistant storage for build process

This commit is contained in:
Thomas Schleicher 2024-10-22 19:45:34 +02:00
parent fc8db87e2e
commit a3618439c2

View file

@ -19,6 +19,10 @@ build_job:
- cd ${BUILD_DIR} - cd ${BUILD_DIR}
- cmake .. ${CMAKE_OPTIONS} - cmake .. ${CMAKE_OPTIONS}
- make -j$(nproc) - make -j$(nproc)
artifacts:
paths:
- ${BUILD_DIR}
expire_in: 1 hour
tags: tags:
- docker - docker
@ -32,9 +36,13 @@ build_job:
package_job: package_job:
stage: package stage: package
script: script:
- docker info - docker build -t ${DOCKER_IMAGE_NAME}:${DOCKER_IMAGE_TAG} ${BUILD_DIR}
- docker build -t ${DOCKER_IMAGE_NAME}:${DOCKER_IMAGE_TAG} . - docker save ${DOCKER_IMAGE_NAME}:${DOCKER_IMAGE_TAG} -o ${DOCKER_IMAGE_NAME}.tar
only: only:
- main - main
artifacts:
expire_in: "1 days"
paths:
- ${DOCKER_IMAGE_NAME}.tar
tags: tags:
- shell - shell