2023-02-02 12:55:08 +00:00
|
|
|
x86_64:build:
|
2020-05-28 07:03:16 +00:00
|
|
|
variables:
|
2023-02-02 12:55:08 +00:00
|
|
|
ARCH: x86_64
|
2020-05-28 07:03:16 +00:00
|
|
|
stage: build
|
|
|
|
image: docker:latest
|
|
|
|
script:
|
2022-04-01 13:27:08 +00:00
|
|
|
- if [ -f init ]; then chmod 500 init; fi
|
2023-02-02 12:55:08 +00:00
|
|
|
- ([ -z "$REFRESH" -a -f docker/${CI_COMMIT_REF_SLUG} ]) && docker load < docker/${CI_COMMIT_REF_SLUG} || 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} > docker/${CI_COMMIT_REF_SLUG}
|
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
|
2023-02-02 12:55:08 +00:00
|
|
|
|
|
|
|
x86_64:build-manifest:
|
|
|
|
stage: build-manifest
|
|
|
|
script:
|
|
|
|
- docker manifest create ${CI_REGISTRY_IMAGE}:${VERSION} ${CI_REGISTRY_IMAGE}:${VERSION}-armv7l ${CI_REGISTRY_IMAGE}:${VERSION}-x86_64
|
|
|
|
- docker manifest push --purge ${CI_REGISTRY_IMAGE}:${VERSION}
|
|
|
|
tags:
|
|
|
|
- docker
|
|
|
|
- x86_64
|
|
|
|
only:
|
|
|
|
- master
|