Skip to content
代码片段 群组 项目
提交 553eaf01 编辑于 作者: Ian Baum's avatar Ian Baum
浏览文件

Add BUILD_ASSETS_IMAGE CI variable

* Defaults to FALSE
* Can be used to disable building/pushing the assets image in the
gitlab:compile:assets job
上级 51c09c38
No related branches found
No related tags found
无相关合并请求
...@@ -32,6 +32,7 @@ variables: ...@@ -32,6 +32,7 @@ variables:
GET_SOURCES_ATTEMPTS: "3" GET_SOURCES_ATTEMPTS: "3"
KNAPSACK_RSPEC_SUITE_REPORT_PATH: knapsack/${CI_PROJECT_NAME}/rspec_report-master.json KNAPSACK_RSPEC_SUITE_REPORT_PATH: knapsack/${CI_PROJECT_NAME}/rspec_report-master.json
FLAKY_RSPEC_SUITE_REPORT_PATH: rspec_flaky/report-suite.json FLAKY_RSPEC_SUITE_REPORT_PATH: rspec_flaky/report-suite.json
BUILD_ASSETS_IMAGE: "false"
before_script: before_script:
- bundle --version - bundle --version
......
#!/bin/bash #!/bin/bash
# Exit early if we don't want to build the image
if [[ "${BUILD_ASSETS_IMAGE}" != "true" ]]
then
exit 0
fi
# Generate the image name based on the project this is being run in # Generate the image name based on the project this is being run in
ASSETS_IMAGE_NAME=$(echo ${CI_PROJECT_NAME} | ASSETS_IMAGE_NAME=$(echo ${CI_PROJECT_NAME} |
awk '{ awk '{
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册