attempt at persistant storage for build process
This commit is contained in:
parent
fc8db87e2e
commit
a3618439c2
1 changed files with 10 additions and 2 deletions
|
|
@ -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
|
||||||
Reference in a new issue