ci: allow passing Hub account or registry name from the environment

This commit is contained in:
Ivan Grokhotkov 2017-03-22 21:59:40 +08:00
parent fbaeb55c15
commit d96b8c317a

View file

@ -23,7 +23,7 @@ before_script:
build_template_app: build_template_app:
stage: build stage: build
image: espressif/esp32-ci-env image: $CI_DOCKER_REGISTRY/esp32-ci-env
tags: tags:
- build - build
@ -57,7 +57,7 @@ build_template_app:
stage: build stage: build
tags: tags:
- build - build
image: espressif/esp32-ci-env image: $CI_DOCKER_REGISTRY/esp32-ci-env
variables: variables:
SDK_PATH: "$CI_PROJECT_DIR" SDK_PATH: "$CI_PROJECT_DIR"
@ -127,7 +127,7 @@ build_examples:
build_docs: build_docs:
stage: build stage: build
image: espressif/esp32-ci-env image: $CI_DOCKER_REGISTRY/esp32-ci-env
tags: tags:
- build_docs - build_docs
script: script:
@ -145,7 +145,7 @@ build_docs:
test_nvs_on_host: test_nvs_on_host:
stage: test stage: test
image: espressif/esp32-ci-env image: $CI_DOCKER_REGISTRY/esp32-ci-env
tags: tags:
- nvs_host_test - nvs_host_test
script: script:
@ -154,7 +154,7 @@ test_nvs_on_host:
test_build_system: test_build_system:
stage: test stage: test
image: espressif/esp32-ci-env image: $CI_DOCKER_REGISTRY/esp32-ci-env
tags: tags:
- build_test - build_test
variables: variables:
@ -164,7 +164,7 @@ test_build_system:
test_report: test_report:
stage: test_report stage: test_report
image: espressif/esp32-ci-env image: $CI_DOCKER_REGISTRY/esp32-ci-env
only: only:
- master - master
- triggers - triggers
@ -222,7 +222,7 @@ push_master_to_github:
tags: tags:
- deploy - deploy
when: on_success when: on_success
image: espressif/esp32-ci-env image: $CI_DOCKER_REGISTRY/esp32-ci-env
variables: variables:
GIT_STRATEGY: clone GIT_STRATEGY: clone
GITHUB_PUSH_REFS: refs/remotes/origin/release refs/remotes/origin/master GITHUB_PUSH_REFS: refs/remotes/origin/release refs/remotes/origin/master
@ -254,7 +254,7 @@ deploy_docs:
- triggers - triggers
tags: tags:
- deploy - deploy
image: espressif/esp32-ci-env image: $CI_DOCKER_REGISTRY/esp32-ci-env
script: script:
- mkdir -p ~/.ssh - mkdir -p ~/.ssh
- chmod 700 ~/.ssh - chmod 700 ~/.ssh
@ -271,7 +271,7 @@ deploy_docs:
check_doc_links: check_doc_links:
stage: test stage: test
image: espressif/esp32-ci-env image: $CI_DOCKER_REGISTRY/esp32-ci-env
tags: tags:
- check_doc_links - check_doc_links
only: only: