2022-04-01 13:27:08 +00:00
|
|
|
build:x86_64:
|
2020-05-28 07:03:16 +00:00
|
|
|
variables:
|
|
|
|
VERSION: x86_64
|
|
|
|
stage: build
|
|
|
|
image: docker:latest
|
|
|
|
script:
|
2022-04-01 13:27:08 +00:00
|
|
|
- if [ -f init ]; then chmod 500 init; fi
|
|
|
|
- ([ -z "$REFRESH" ] && docker pull ${CI_REGISTRY_IMAGE}:${CACHETAG}) || true
|
|
|
|
- docker build --cache-from ${CI_REGISTRY_IMAGE}:${CACHETAG} -t ${CI_REGISTRY_IMAGE}:${VERSION} -t ${CI_REGISTRY_IMAGE}:${CACHETAG} .
|
|
|
|
- docker push ${CI_REGISTRY_IMAGE}:${VERSION}
|
|
|
|
- docker push ${CI_REGISTRY_IMAGE}:${CACHETAG}
|
2020-05-28 07:03:16 +00:00
|
|
|
tags:
|
2022-04-01 13:27:08 +00:00
|
|
|
- docker
|
|
|
|
- x86_64
|
2020-05-28 07:03:16 +00:00
|
|
|
only:
|
2022-04-01 13:27:08 +00:00
|
|
|
- master
|