Loading .gitlab-ci.yml +4 −4 Original line number Diff line number Diff line Loading @@ -3,7 +3,6 @@ stages: - build - deploy # Cache modules in between jobs cache: key: ${CI_COMMIT_REF_SLUG} Loading @@ -14,6 +13,7 @@ pylint: stage: analysis image: python:3.7 allow_failure: false retry: 3 before_script: - curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python Loading @@ -34,6 +34,7 @@ black: stage: analysis image: python:3.7 allow_failure: true retry: 3 before_script: - curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python Loading Loading @@ -80,7 +81,6 @@ build: - tags - web # Deploy to builds.openflexure.org deploy: stage: deploy Loading @@ -89,7 +89,7 @@ deploy: image: ubuntu:latest before_script: - 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )' - "which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )" - eval $(ssh-agent -s) - ssh-add <(echo "$SSH_PRIVATE_KEY_BATH_OPENFLEXURE_BASE64" | base64 --decode) - mkdir -p ~/.ssh Loading @@ -97,7 +97,7 @@ deploy: script: # Install rsync if not already installed - 'which rsync || ( apt-get update -y && apt-get install rsync -y )' - "which rsync || ( apt-get update -y && apt-get install rsync -y )" # Upload the builds folder to openflexure-microscope builds - rsync -hrvz -e ssh dist/ ci-user@openflexure.bath.ac.uk:/var/www/build/openflexure-microscope-server Loading Loading
.gitlab-ci.yml +4 −4 Original line number Diff line number Diff line Loading @@ -3,7 +3,6 @@ stages: - build - deploy # Cache modules in between jobs cache: key: ${CI_COMMIT_REF_SLUG} Loading @@ -14,6 +13,7 @@ pylint: stage: analysis image: python:3.7 allow_failure: false retry: 3 before_script: - curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python Loading @@ -34,6 +34,7 @@ black: stage: analysis image: python:3.7 allow_failure: true retry: 3 before_script: - curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python Loading Loading @@ -80,7 +81,6 @@ build: - tags - web # Deploy to builds.openflexure.org deploy: stage: deploy Loading @@ -89,7 +89,7 @@ deploy: image: ubuntu:latest before_script: - 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )' - "which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )" - eval $(ssh-agent -s) - ssh-add <(echo "$SSH_PRIVATE_KEY_BATH_OPENFLEXURE_BASE64" | base64 --decode) - mkdir -p ~/.ssh Loading @@ -97,7 +97,7 @@ deploy: script: # Install rsync if not already installed - 'which rsync || ( apt-get update -y && apt-get install rsync -y )' - "which rsync || ( apt-get update -y && apt-get install rsync -y )" # Upload the builds folder to openflexure-microscope builds - rsync -hrvz -e ssh dist/ ci-user@openflexure.bath.ac.uk:/var/www/build/openflexure-microscope-server Loading