Merge branch 'main' of gitlab.sectorq.eu:jaydee/portainer

This commit is contained in:
2025-12-04 23:45:31 +01:00

View File

@@ -39,7 +39,7 @@ build-job: # This job runs in the build stage, which runs first.
clean-job: # This job runs in the build stage, which runs first. clean-job: # This job runs in the build stage, which runs first.
stage: clean stage: clean
script: script:
- ls -la /home/gitlab-runner/builds/* - rm -rf /home/gitlab-runner/builds/1fLwHSKm2/0/jaydee/portainer.tmp
rules: rules:
- if: '$CI_COMMIT_MESSAGE =~ /build/' - if: '$CI_COMMIT_MESSAGE =~ /build/'
@@ -47,7 +47,7 @@ cleanup_on_failure_job:
stage: clean # Should be in a later stage than the job that might fail stage: clean # Should be in a later stage than the job that might fail
when: on_failure # <-- This is the key keyword when: on_failure # <-- This is the key keyword
script: script:
- ls -la /home/gitlab-runner/builds/* - rm -rf /home/gitlab-runner/builds/1fLwHSKm2/0/jaydee/portainer.tmp
notify: notify:
stage: notify # Should be in a later stage than the job that might fail stage: notify # Should be in a later stage than the job that might fail
@@ -56,6 +56,7 @@ notify:
- column=':' - column=':'
- echo "${flow_id}" - echo "${flow_id}"
- curl -XPOST http://192.168.77.101:8123/api/webhook/voice-notifications-tC_8YKxMJIAaQRV5riKuC7Zl --data-raw 'message=build job completed' - curl -XPOST http://192.168.77.101:8123/api/webhook/voice-notifications-tC_8YKxMJIAaQRV5riKuC7Zl --data-raw 'message=build job completed'
- rm -rf /home/gitlab-runner/builds/1fLwHSKm2/0/jaydee/portainer.tmp
notify2: notify2:
stage: notify # Should be in a later stage than the job that might fail stage: notify # Should be in a later stage than the job that might fail
@@ -64,6 +65,7 @@ notify2:
- column=':' - column=':'
- echo "${flow_id}" - echo "${flow_id}"
- curl -XPOST http://192.168.77.101:8123/api/webhook/voice-notifications-tC_8YKxMJIAaQRV5riKuC7Zl --data-raw 'message=build job failed' - curl -XPOST http://192.168.77.101:8123/api/webhook/voice-notifications-tC_8YKxMJIAaQRV5riKuC7Zl --data-raw 'message=build job failed'
- rm -rf /home/gitlab-runner/builds/1fLwHSKm2/0/jaydee/portainer.tmp
rules: rules:
- if: '$CI_COMMIT_MESSAGE =~ /build/' - if: '$CI_COMMIT_MESSAGE =~ /build/'