Skip to content

Commit 2121b04

Browse files
authored
ci: Dynamically get config path (#164)
1 parent e40448c commit 2121b04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.gitlab/ci/setup.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ variables:
8484
.provision_mcs:
8585
before_script:
8686
- |
87-
sed -i "0,/ansible: {}/s|ansible: {}|ansible:\n git_servers:\n - repositories:\n - path: \"${LINUX_BIN_REPO_PATH}\"\n - path: \"${DNS_BIN_REPO_PATH}\"\n - path: \"${VYOS_BIN_REPO_PATH}\"\n - path: \"${NTP_BIN_REPO_PATH}\"\n - path: \"${LAYER2_BIN_REPO_PATH}\"\n server_url: \"https://gitlab-ci-token:${CI_JOB_TOKEN}@${CI_SERVER_HOST}\"|" $FIREWHEEL_ROOT_DIR/src/firewheel/firewheel.yaml
87+
sed -i "0,/ansible: {}/s|ansible: {}|ansible:\n git_servers:\n - repositories:\n - path: \"${LINUX_BIN_REPO_PATH}\"\n - path: \"${DNS_BIN_REPO_PATH}\"\n - path: \"${VYOS_BIN_REPO_PATH}\"\n - path: \"${NTP_BIN_REPO_PATH}\"\n - path: \"${LAYER2_BIN_REPO_PATH}\"\n server_url: \"https://gitlab-ci-token:${CI_JOB_TOKEN}@${CI_SERVER_HOST}\"|" "$(python3 -c 'import firewheel.config; config = firewheel.config.Config(); print(config.config_path)')"
8888
- git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@${CI_SERVER_HOST}/${UTILITIES_BIN_REPO_PATH} /tmp/utilities
8989
- pushd /tmp/utilities; cp -r --parents * $FIREWHEEL_ROOT_DIR/model_components/firewheel_repo_utilities/; popd;
9090
- firewheel repository install -i -s

0 commit comments

Comments
 (0)