From bd185a22ced628bd48bc08b95f0042f4b1dc4f76 Mon Sep 17 00:00:00 2001 From: Laci Dusa Date: Fri, 5 Dec 2025 21:58:02 +0100 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6b00d42..85f151b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -8,11 +8,10 @@ variables: lint: stage: lint # image: python:3.12 - image: r.sectorq.eu/jaydee/portainer:test - # before_script: - # - python3 -m pip install --break-system-packages flake8 black pylint tabulate prompt_toolkit - # - export PATH="$PATH:/home/gitlab-runner/.local/bin" - # # - echo "PATH is now: $PATH" + before_script: + - python3 -m pip install --break-system-packages flake8 black pylint tabulate prompt_toolkit + - export PATH="$PATH:/home/gitlab-runner/.local/bin" + # - echo "PATH is now: $PATH" script: - flake8 . - black --check . @@ -22,12 +21,10 @@ lint: - if: '$CI_COMMIT_MESSAGE =~ /lint/' build-job: # This job runs in the build stage, which runs first. stage: build - image: r.sectorq.eu/jaydee/portainer:test script: - python3 -m venv venv - source venv/bin/activate - # - pip install pyinstaller requests tabulate gitpython prompt_toolkit - - flake8 . + - pip install pyinstaller requests tabulate gitpython prompt_toolkit - 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@morefine.home.lan:/myapps/bin/ || true