Test pages

Added stage

Move files to public

Move folder instead

Make if already exists

Move filees

Finished cleaning
This commit is contained in:
Forest Anderson 2020-06-11 09:24:07 -04:00
parent 4822150220
commit d8a8cc7032

View File

@ -15,3 +15,15 @@ docker:
script:
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/server-cli/Dockerfile --destination "${CI_REGISTRY_IMAGE}:${CI_COMMIT_REF_NAME}-server"
pages:
extends: .release
stage: check-compile
artifacts:
paths:
- public
script:
- rm -rf public
- mkdir -p public
- cargo doc --no-deps --all-features --document-private-items
- mv target/doc/* public