2022-01-25 20:16:56 +00:00
|
|
|
docker-build-prod-latest:
|
|
|
|
image: ezkrg/buildx
|
|
|
|
stage: build-docker
|
|
|
|
services:
|
|
|
|
- docker:dind
|
|
|
|
before_script:
|
|
|
|
- docker buildx create --use
|
|
|
|
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
|
|
|
|
script:
|
|
|
|
- |
|
|
|
|
docker buildx build \
|
|
|
|
--platform linux/amd64,linux/arm64 \
|
|
|
|
--build-arg CI_COMMIT_BRANCH=$CI_COMMIT_BRANCH \
|
|
|
|
--build-arg CI_COMMIT_SHORT_SHA=$CI_COMMIT_SHORT_SHA \
|
|
|
|
--build-arg CI_COMMIT_TAG=$CI_COMMIT_TAG \
|
|
|
|
--push \
|
|
|
|
--tag $CI_REGISTRY_IMAGE:latest \
|
|
|
|
.
|
|
|
|
only:
|
2022-01-27 15:50:14 +00:00
|
|
|
- main
|
|
|
|
|
|
|
|
generate-deploy-docs:
|
|
|
|
stage: docs
|
|
|
|
script:
|
|
|
|
- mkdocs build --strict --verbose
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- docs-public
|
|
|
|
only:
|
2022-01-25 20:16:56 +00:00
|
|
|
- main
|