mirror of
https://gitlab.sectorq.eu/jaydee/portainer.git
synced 2025-12-14 10:44:52 +01:00
Update .gitlab-ci.yml file
This commit is contained in:
@@ -8,11 +8,10 @@ variables:
|
|||||||
lint:
|
lint:
|
||||||
stage: lint
|
stage: lint
|
||||||
# image: python:3.12
|
# image: python:3.12
|
||||||
image: r.sectorq.eu/jaydee/portainer:test
|
before_script:
|
||||||
# before_script:
|
- python3 -m pip install --break-system-packages flake8 black pylint tabulate prompt_toolkit
|
||||||
# - python3 -m pip install --break-system-packages flake8 black pylint tabulate prompt_toolkit
|
- export PATH="$PATH:/home/gitlab-runner/.local/bin"
|
||||||
# - export PATH="$PATH:/home/gitlab-runner/.local/bin"
|
# - echo "PATH is now: $PATH"
|
||||||
# # - echo "PATH is now: $PATH"
|
|
||||||
script:
|
script:
|
||||||
- flake8 .
|
- flake8 .
|
||||||
- black --check .
|
- black --check .
|
||||||
@@ -22,12 +21,10 @@ 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/portainer:test
|
|
||||||
script:
|
script:
|
||||||
- python3 -m venv venv
|
- python3 -m venv venv
|
||||||
- source venv/bin/activate
|
- source venv/bin/activate
|
||||||
# - pip install pyinstaller requests tabulate gitpython prompt_toolkit
|
- pip install pyinstaller requests tabulate gitpython prompt_toolkit
|
||||||
- flake8 .
|
|
||||||
- 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 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 StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null dist/portainer jd@morefine.home.lan:/myapps/bin/ || true
|
||||||
|
|||||||
Reference in New Issue
Block a user