mirror of
https://gitlab.sectorq.eu/jaydee/portainer.git
synced 2026-01-29 04:49:44 +01:00
Update .gitlab-ci.yml file
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user