Compare commits

...

6 Commits

Author SHA1 Message Date
b30094ca9d Update .gitlab-ci.yml file 2025-12-08 22:23:11 +01:00
191bde3f26 build 2025-12-08 21:18:44 +01:00
b2cf21a7cd Merge branch 'main' of gitlab.sectorq.eu:jaydee/portainer 2025-12-08 21:18:28 +01:00
9f37755932 build 2025-12-08 21:18:23 +01:00
88e8ea7658 Update .gitlab-ci.yml file 2025-12-08 21:17:46 +01:00
9218351ebc build 2025-12-08 16:47:12 +01:00
2 changed files with 8 additions and 6 deletions

View File

@@ -21,14 +21,12 @@ lint:
- if: '$CI_COMMIT_MESSAGE =~ /lint/' - if: '$CI_COMMIT_MESSAGE =~ /lint/'
build-job: # This job runs in the build stage, which runs first. build-job: # This job runs in the build stage, which runs first.
stage: build stage: build
image: r.sectorq.eu/jaydee/python-custom:latest
script: script:
- python3 -m venv venv
- source venv/bin/activate
- pip install pyinstaller requests tabulate gitpython prompt_toolkit
- pyinstaller --onefile portainer.py - pyinstaller --onefile portainer.py
- scp -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
- scp -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null dist/portainer jd@morefine.home.lan:/myapps/bin/ || true - scp -o ConnectTimeout=5 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null dist/portainer jd@morefine.home.lan:/myapps/bin/ || true
- scp -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null dist/portainer jd@m-server.home.lan:/myapps/bin/ || true - scp -o ConnectTimeout=5 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null dist/portainer jd@m-server.home.lan:/myapps/bin/ || true
- rm -rf /home/gitlab-runner/builds/1fLwHSKm2/0/jaydee/portainer.tmp - rm -rf /home/gitlab-runner/builds/1fLwHSKm2/0/jaydee/portainer.tmp
artifacts: artifacts:
paths: paths:

View File

@@ -354,6 +354,10 @@ def prompt_missing_args(args_in, defaults_in, fields, action=None,stacks=None):
if field == "site" and value_in != cur_site: if field == "site" and value_in != cur_site:
por.get_site(value_in) por.get_site(value_in)
if value_in == "portainer":
defaults_in["PORTAINER_ENDPOINT_ID"] = "m-s"
elif value_in == "port":
defaults_in["PORTAINER_ENDPOINT_ID"] = "vm01"
if field == "stack" and value_in != cur_site: if field == "stack" and value_in != cur_site:
os.environ[field] = ",".join(value_in) os.environ[field] = ",".join(value_in)
else: else: