Commit b5545b28 authored by Christophe Benz's avatar Christophe Benz

Update GitLab CI config

parent 0bc8ab8a
Pipeline #1694 failed
......@@ -6,8 +6,11 @@ before_script:
- apt -qq --yes install git
- apt -qq --yes install python3 python3-pip
# Install fetcher dependencies.
- [ -f requirements.txt ] && pip3 install --requirement requirements.txt
# Install ssh-agent if not already installed, it is required by Docker.
- 'which ssh-agent || apt -qq --yes install openssh-client'
- which ssh-agent || apt -qq --yes install openssh-client
# Run ssh-agent (inside the build environment).
- eval $(ssh-agent -s)
......@@ -19,12 +22,6 @@ before_script:
- mkdir -p ~/.ssh
- ssh-keyscan -t rsa git.nomics.world >> ~/.ssh/known_hosts
# You can optionally disable host key checking. Be aware that by adding that
# you are suspectible to man-in-the-middle attacks.
# WARNING: Use this only with the Docker executor, if you use it with shell
# you will overwrite your user's SSH config.
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
- git config --global push.default simple
- git config --global user.email "ameco-fetcher@db.nomics.world"
- git config --global user.name "ameco fetcher"
......@@ -54,7 +51,7 @@ job:
cd ameco-source-data
time git add -A
time git commit -m "New fetch" --quiet || echo "Nothing to commit"
time git push origin master || echo "Nothing to push"
time git push || echo "Nothing to push"
fi
- |
if [ "${JOB}" == "convert" ]; then
......@@ -67,5 +64,5 @@ job:
cd ameco-json-data
time git add -A
time git commit -m "New conversion" --quiet || echo "Nothing to commit"
time git push origin master || echo "Nothing to push"
time git push || echo "Nothing to push"
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment