Update .gitlab-ci.yml file

This commit is contained in:
2025-12-23 14:59:37 +01:00
parent c341c2332f
commit 45c97d1791

View File

@@ -34,12 +34,13 @@ build-job: # This job runs in the build stage, which runs first.
# image: r.sectorq.eu/jaydee/builder-portainer:latest # image: r.sectorq.eu/jaydee/builder-portainer:latest
before_script: before_script:
- export PYTHONPATH=$PWD - 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: script:
- mkdir -p ~/.ssh - mkdir -p ~/.ssh
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' > ~/.ssh/id_rsa - echo "$SSH_PRIVATE_KEY" | tr -d '\r' > ~/.ssh/id_rsa
- chmod 600 ~/.ssh/id_rsa - chmod 600 ~/.ssh/id_rsa
- ls -la - 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 - pyinstaller --onefile --clean --hidden-import=portainer_api portainer.py
- strings dist/portainer | grep portainer_api || true - 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 - scp -o ConnectTimeout=5 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null dist/portainer jd@192.168.80.222:/myapps/bin/ || true