stages: - test - deploy pylint: stage: test before_script: - apt-get -qq update - apt-get -qq install -y python3 python3-venv python3-pip - python3 -m venv venv - source venv/bin/activate - pip install -r requirements.txt pylint script: - pylint marietje/marietje marietje/metrics marietje/playerapi marietje/queues marietje/songs marietje/stats deploy: stage: deploy only: ['marietje-zuid'] before_script: - apt-get -qq update - apt-get -qq install -y git openssh-client script: | umask 077 mkdir -p "$HOME/.ssh" cat <"$HOME/.ssh/id_rsa" $SSH_PRIVATE_KEY EOF cat <>"$HOME/.ssh/known_hosts" marietje-zuid.science.ru.nl ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBLticd8NEr6r5QJ2VKFX/rVcfkhM3IcAr+hCgc/kgBSIPEzyRIXd74glIx17FJxvhi2KLC5D+EVtu9CSZhYSe10= EOF # Deploy the new version cat <