mirror of
https://gitlab.sectorq.eu/jaydee/portainer.git
synced 2025-12-14 18:44:53 +01:00
Compare commits
6 Commits
688cdb344d
...
b30094ca9d
| Author | SHA1 | Date | |
|---|---|---|---|
| b30094ca9d | |||
| 191bde3f26 | |||
| b2cf21a7cd | |||
| 9f37755932 | |||
| 88e8ea7658 | |||
| 9218351ebc |
@@ -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:
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user