Update .gitlab-ci.yml file

This commit is contained in:
2026-03-12 22:09:13 +01:00
parent e25f0b6123
commit f4f1ad9f9a
+22 -2
View File
@@ -1,12 +1,13 @@
stages: # List of stages for jobs, and their order of execution stages: # List of stages for jobs, and their order of execution
- notify1
- build - build
- test - test
- scan - scan
- push - push
- deploy - deploy
- security - security
- notify2
variables: variables:
DOCKER_DRIVER: overlay2 DOCKER_DRIVER: overlay2
IMAGE_NAME: r.sectorq.eu/jaydee/api-server:latest IMAGE_NAME: r.sectorq.eu/jaydee/api-server:latest
@@ -14,7 +15,16 @@ variables:
CS_IMAGE: r.sectorq.eu/jaydee/api-server:latest CS_IMAGE: r.sectorq.eu/jaydee/api-server:latest
SECURE_LOG_LEVEL: debug SECURE_LOG_LEVEL: debug
notify1:
stage: notify1 # Should be in a later stage than the job that might fail
when: on_success # <-- This is the key keyword
script:
- column=':'
- echo "${flow_id}"
- curl -XPOST http://192.168.77.101:8123/api/webhook/voice-notifications-tC_8YKxMJIAaQRV5riKuC7Zl --data-raw 'message=A.P.I. server build job started'
- rm -rf /home/gitlab-runner/builds/1fLwHSKm2/0/jaydee/portainer.tmp
rules:
- if: '$CI_COMMIT_MESSAGE =~ /build/'
docker_build: docker_build:
stage: build stage: build
image: docker:24 image: docker:24
@@ -56,3 +66,13 @@ docker_push:
script: script:
- docker login -u "jaydee" -p "$CI_REGISTRY_PASSWORD" r.sectorq.eu - docker login -u "jaydee" -p "$CI_REGISTRY_PASSWORD" r.sectorq.eu
- docker push $IMAGE_NAME - docker push $IMAGE_NAME
notify_finish:
stage: notify2 # Should be in a later stage than the job that might fail
when: on_success # <-- This is the key keyword
script:
- column=':'
- echo "${flow_id}"
- curl -XPOST http://192.168.77.101:8123/api/webhook/voice-notifications-tC_8YKxMJIAaQRV5riKuC7Zl --data-raw 'message=A.P.I. server build job started'
- rm -rf /home/gitlab-runner/builds/1fLwHSKm2/0/jaydee/portainer.tmp
rules:
- if: '$CI_COMMIT_MESSAGE =~ /build/'