diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a6432be..b562707 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -37,7 +37,7 @@ build-job: # This job runs in the build stage, which runs first. - mkdir -p ~/.ssh - echo "$SSH_PRIVATE_KEY" | tr -d '\r' > ~/.ssh/id_rsa - chmod 600 ~/.ssh/id_rsa - - pyinstaller --onefile portainer.py --hidden-import=port + - pyinstaller --onefile --clean--hidden-import=port --paths=. portainer.py - scp -o ConnectTimeout=$SSH_CONNECTION_TIMEOUT -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null dist/portainer jd@192.168.80.222:/myapps/bin/ || true - scp -o ConnectTimeout=$SSH_CONNECTION_TIMEOUT -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null dist/portainer jd@192.168.77.12:/myapps/bin/ || true - scp -o ConnectTimeout=$SSH_CONNECTION_TIMEOUT -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null dist/portainer jd@192.168.77.101:/myapps/bin/ || true