Loading .gitlab-ci.yml +16 −1 Original line number Diff line number Diff line Loading @@ -5,7 +5,22 @@ stages: build-list: stage: deploy before_script: - 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )' - 'which git || ( apt-get install git -y )' - eval $(ssh-agent -s) - echo "$SSH_E_ROBOT_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null - mkdir -p ~/.ssh - chmod 700 ~/.ssh - echo "$SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts - chmod 644 ~/.ssh/known_hosts - git remote set-url origin ssh://git@gitlab.e.foundation/$CI_PROJECT_PATH.git - git config --global user.name "$GITLAB_USER_NAME" - git config --global user.email "$GITLAB_USER_EMAIL" script: - node build_list.js - node validate_json.js - node upload_list.js - git add list/e_trackers.json - git commit -m "Auto update trackers list" - git push build_list.js +0 −1 Original line number Diff line number Diff line Loading @@ -157,4 +157,3 @@ function printTrackers() { function saveTrackersFile(trackersJson) { fs.writeFileSync(outputFile, trackersJson) } Loading
.gitlab-ci.yml +16 −1 Original line number Diff line number Diff line Loading @@ -5,7 +5,22 @@ stages: build-list: stage: deploy before_script: - 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )' - 'which git || ( apt-get install git -y )' - eval $(ssh-agent -s) - echo "$SSH_E_ROBOT_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null - mkdir -p ~/.ssh - chmod 700 ~/.ssh - echo "$SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts - chmod 644 ~/.ssh/known_hosts - git remote set-url origin ssh://git@gitlab.e.foundation/$CI_PROJECT_PATH.git - git config --global user.name "$GITLAB_USER_NAME" - git config --global user.email "$GITLAB_USER_EMAIL" script: - node build_list.js - node validate_json.js - node upload_list.js - git add list/e_trackers.json - git commit -m "Auto update trackers list" - git push
build_list.js +0 −1 Original line number Diff line number Diff line Loading @@ -157,4 +157,3 @@ function printTrackers() { function saveTrackersFile(trackersJson) { fs.writeFileSync(outputFile, trackersJson) }