diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6459960..14ca245 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -34,12 +34,13 @@ build-job: # This job runs in the build stage, which runs first. # image: r.sectorq.eu/jaydee/builder-portainer:latest before_script: - export PYTHONPATH=$PWD - - python3 -m pip install --break-system-packages flake8 black pylint tabulate prompt_toolkit hvac + - python3 -m pip install --break-system-packages flake8 black pylint tabulate prompt_toolkit hvac pyinstaller script: - mkdir -p ~/.ssh - echo "$SSH_PRIVATE_KEY" | tr -d '\r' > ~/.ssh/id_rsa - chmod 600 ~/.ssh/id_rsa - ls -la + - python3 -m pip install --break-system-packages flake8 black pylint tabulate prompt_toolkit hvac pyinstaller - pyinstaller --onefile --clean --hidden-import=portainer_api portainer.py - strings dist/portainer | grep portainer_api || true - scp -o ConnectTimeout=5 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null dist/portainer jd@192.168.80.222:/myapps/bin/ || true