goshorly/.gitlab/ci/main-branch.yml

35 lines
823 B
YAML
Raw Normal View History

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
2022-01-27 16:42:35 +00:00
pages:
stage: deploy
2022-01-27 16:25:26 +00:00
image: python:alpine
2022-01-27 15:50:14 +00:00
script:
2022-01-27 16:25:26 +00:00
- pip install --no-cache-dir -r mkdocs-req.txt
- python -m mkdocs build --strict --verbose
2022-01-27 15:50:14 +00:00
artifacts:
paths:
- public
2022-01-27 16:42:35 +00:00
rules:
2022-01-27 16:44:03 +00:00
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
2022-01-27 15:50:14 +00:00
only:
2022-01-27 16:43:01 +00:00
- main