2019-06-13 00:27:12 +00:00
|
|
|
x86_64:build:
|
|
|
|
variables:
|
2023-04-25 10:39:41 +00:00
|
|
|
ARCH: x86_64
|
2019-06-13 00:27:12 +00:00
|
|
|
stage: build
|
|
|
|
script:
|
|
|
|
- if [ -f init ]; then chmod 500 init; fi
|
2023-04-25 10:39:41 +00:00
|
|
|
- ([ -z "$REFRESH" -a -f build-cache/${CI_COMMIT_REF_SLUG} ]) && docker load < build-cache/${CI_COMMIT_REF_SLUG} || true
|
|
|
|
- rm build-cache/* || true
|
|
|
|
- docker build --build-arg HTTP_PROXY=http://proxy.dege.lan:3128 --cache-from ${CI_REGISTRY_IMAGE}:${VERSIONARCH} -t ${CI_REGISTRY_IMAGE}:${VERSIONARCH} .
|
|
|
|
- docker push ${CI_REGISTRY_IMAGE}:${VERSIONARCH}
|
|
|
|
- docker save ${CI_REGISTRY_IMAGE}:${VERSIONARCH} > build-cache/${CI_COMMIT_REF_SLUG}
|
2019-06-13 00:27:12 +00:00
|
|
|
tags:
|
|
|
|
- docker
|
|
|
|
- x86_64
|
|
|
|
only:
|
|
|
|
- master
|