2023-02-03 06:45:51 +00:00
|
|
|
arm64:build:
|
|
|
|
variables:
|
|
|
|
ARCH: arm64
|
|
|
|
stage: build
|
|
|
|
script:
|
|
|
|
- if [ -f init ]; then chmod 500 init; fi
|
2023-02-04 13:47:39 +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
|
2023-06-30 13:00:29 +00:00
|
|
|
- docker build ${HTTP_PROXY:+--build-arg HTTP_PROXY=${HTTP_PROXY}} --cache-from ${CI_REGISTRY_IMAGE}:${VERSIONARCH} -t ${CI_REGISTRY_IMAGE}:${VERSIONARCH} .
|
2023-02-03 06:45:51 +00:00
|
|
|
- docker push ${CI_REGISTRY_IMAGE}:${VERSIONARCH}
|
2023-02-04 13:47:39 +00:00
|
|
|
- docker save ${CI_REGISTRY_IMAGE}:${VERSIONARCH} > build-cache/${CI_COMMIT_REF_SLUG}
|
2023-02-03 06:45:51 +00:00
|
|
|
tags:
|
|
|
|
- docker
|
|
|
|
- arm64
|
|
|
|
only:
|
2024-01-08 10:15:39 +00:00
|
|
|
- master
|
2023-02-03 06:45:51 +00:00
|
|
|
|
2023-02-04 12:38:08 +00:00
|
|
|
#arm64:build-test:
|
|
|
|
# variables:
|
|
|
|
# ARCH: arm64
|
|
|
|
# stage: build-test
|
|
|
|
# script:
|
2023-06-30 13:00:29 +00:00
|
|
|
# - docker build ${HTTP_PROXY:+--build-arg HTTP_PROXY=${HTTP_PROXY}} --file Dockerfile.phptest -t ${CI_REGISTRY_IMAGE}:${VERSIONARCH}-test .
|
2023-02-04 12:38:08 +00:00
|
|
|
# - docker push ${CI_REGISTRY_IMAGE}:${VERSIONARCH}-test
|
|
|
|
# tags:
|
|
|
|
# - docker
|
|
|
|
# - arm64
|
|
|
|
# only:
|
2024-01-08 10:15:39 +00:00
|
|
|
# - master
|