nginx/.gitlab-docker-x86_64.yml

28 lines
915 B
YAML
Raw Normal View History

x86_64:build:
2020-05-28 07:03:16 +00:00
variables:
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
- ([ -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
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