Compare commits

...

11 Commits

Author SHA1 Message Date
jaydee d1302c58a7 build-all 2026-02-26 15:45:50 +01:00
jaydee 42ebef5f45 Merge branch 'main' of gitlab.sectorq.eu:jaydee/portainer 2026-02-26 15:45:44 +01:00
jaydee 1a2f57a81f build-all 2026-02-26 15:45:40 +01:00
jaydee eee10f8338 Update .gitlab-ci.yml file 2026-02-26 15:21:21 +01:00
jaydee 6d30afc469 Update .gitlab-ci.yml file 2026-02-26 15:20:37 +01:00
jaydee 02db7ce43b build 2026-02-26 11:53:53 +01:00
jaydee 5cbeb664f3 Update .gitlab-ci.yml file 2026-02-26 11:53:39 +01:00
jaydee 2cf4b2b67d build 2026-02-26 11:21:31 +01:00
jaydee 6aecddef8a Update .gitlab-ci.yml file 2026-02-26 11:21:18 +01:00
jaydee 2283143aca build 2026-02-26 11:19:21 +01:00
jaydee 37a6b1548b Update .gitlab-ci.yml file 2026-02-26 11:18:36 +01:00
2 changed files with 37 additions and 5 deletions
+35 -4
View File
@@ -14,10 +14,12 @@ notify1:
- column=':'
- echo "${flow_id}"
- curl -XPOST http://192.168.77.101:8123/api/webhook/voice-notifications-tC_8YKxMJIAaQRV5riKuC7Zl --data-raw 'message=portainer build job started'
- rm -rf /home/gitlab-runner/builds/1fLwHSKm2/0/jaydee/portainer.tmp
- rm -rf /home/gitlab-runner/builds/1fLwHSKm2/0/jaydee/portainer.tmp
rules:
- if: '$CI_COMMIT_MESSAGE =~ /build/'
lint:
stage: lint
image: r.sectorq.eu/jaydee/builder-portainer:latest
image: r.sectorq.eu/jaydee/builder:latest
before_script:
- python3 -m pip install --break-system-packages flake8 black pylint tabulate prompt_toolkit hvac
- export PATH="$PATH:/home/gitlab-runner/.local/bin"
@@ -31,7 +33,7 @@ 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/builder-portainer:latest
image: r.sectorq.eu/jaydee/builder:latest
script:
- mkdir -p ~/.ssh
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' > ~/.ssh/id_rsa
@@ -43,7 +45,7 @@ build-job: # This job runs in the build stage, which runs first.
- pyinstaller --onefile --clean -n portainer main.py
#- scp -o ConnectTimeout=5 -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.77.12:/myapps/bin/ || true
- scp -o ConnectTimeout=5 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null dist/portainer jd@192.168.77.101:/myapps/bin/ || true
- curl -F "file=@dist/portainer" https://myapps.sectorq.eu/
- rm -rf /home/gitlab-runner/builds/1fLwHSKm2/0/jaydee/portainer.tmp
artifacts:
paths:
@@ -54,6 +56,33 @@ build-job: # This job runs in the build stage, which runs first.
# - curl -X POST https://kestra.sectorq.eu/api/v1/executions/webhook/jaydee/ansible-all/${flow_id} -d '{"tag":["proxmox"],"target":["servers"]}' -H "Content-Type${column} application/json"
rules:
- if: '$CI_COMMIT_MESSAGE =~ /build/'
build-job-arm: # This job runs in the build stage, which runs first.
stage: build
image: r.sectorq.eu/jaydee/builder-arm:latest
script:
- mkdir -p ~/.ssh
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' > ~/.ssh/id_rsa
- chmod 600 ~/.ssh/id_rsa
- pip install uuid
#- pyinstaller --onefile --add-data "port.py:." portainer.py
- rm -rf build dist *.spec
- python3 main.py -h
- pyinstaller --onefile --clean -n portainer_arm main.py
#- scp -o ConnectTimeout=5 -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_arm jd@192.168.77.12:/myapps/bin/ || true
- curl -F "file=@dist/portainer_arm" https://myapps.sectorq.eu/
- rm -rf /home/gitlab-runner/builds/1fLwHSKm2/0/jaydee/portainer.tmp
artifacts:
paths:
- dist/
expire_in: 1 week
# - column=":"
# - echo "${flow_id}"
# - curl -X POST https://kestra.sectorq.eu/api/v1/executions/webhook/jaydee/ansible-all/${flow_id} -d '{"tag":["proxmox"],"target":["servers"]}' -H "Content-Type${column} application/json"
rules:
- if: '$CI_COMMIT_MESSAGE =~ /build-all/'
clean-job: # This job runs in the build stage, which runs first.
stage: clean
script:
@@ -73,6 +102,8 @@ notify:
- echo "${flow_id}"
- curl -XPOST http://192.168.77.101:8123/api/webhook/voice-notifications-tC_8YKxMJIAaQRV5riKuC7Zl --data-raw 'message=portainer build job completed'
- rm -rf /home/gitlab-runner/builds/1fLwHSKm2/0/jaydee/portainer.tmp
rules:
- if: '$CI_COMMIT_MESSAGE =~ /build/'
notify2:
stage: notify # Should be in a later stage than the job that might fail
when: on_failure # <-- This is the key keyword
+2 -1
View File
@@ -46,7 +46,8 @@ def setup_vault():
# Specify the mount point of your KV engine
return vclient
VERSION = "0.1.58"
VERSION = "0.1.62"
defaults = {
"endpoint_id": "vm01",