2023-02-03 06:45:51 +00:00
|
|
|
armv7l:build:
|
|
|
|
variables:
|
|
|
|
ARCH: armv7l
|
|
|
|
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-02-03 06:45:51 +00:00
|
|
|
- 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}
|
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
|
|
|
|
- armv7l
|
|
|
|
only:
|
|
|
|
- alpine
|
|
|
|
|
|
|
|
armv7l:build-test:
|
|
|
|
variables:
|
|
|
|
ARCH: armv7l
|
|
|
|
stage: build-test
|
|
|
|
script:
|
|
|
|
- docker build --build-arg HTTP_PROXY=http://proxy.dege.lan:3128 --file Dockerfile.phptest -t ${CI_REGISTRY_IMAGE}:${VERSIONARCH}-test .
|
|
|
|
- docker push ${CI_REGISTRY_IMAGE}:${VERSIONARCH}-test
|
|
|
|
tags:
|
|
|
|
- docker
|
|
|
|
- armv7l
|
|
|
|
only:
|
|
|
|
- alpine
|