mirror of
https://gitlab.sectorq.eu/jaydee/api_server.git
synced 2026-09-17 02:12:55 +02:00
Update .gitlab-ci.yml file
This commit is contained in:
+22
-2
@@ -1,12 +1,13 @@
|
||||
|
||||
stages: # List of stages for jobs, and their order of execution
|
||||
- notify1
|
||||
- build
|
||||
- test
|
||||
- scan
|
||||
- push
|
||||
- deploy
|
||||
- security
|
||||
|
||||
- notify2
|
||||
variables:
|
||||
DOCKER_DRIVER: overlay2
|
||||
IMAGE_NAME: r.sectorq.eu/jaydee/api-server:latest
|
||||
@@ -14,7 +15,16 @@ variables:
|
||||
CS_IMAGE: r.sectorq.eu/jaydee/api-server:latest
|
||||
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:
|
||||
stage: build
|
||||
image: docker:24
|
||||
@@ -56,3 +66,13 @@ docker_push:
|
||||
script:
|
||||
- docker login -u "jaydee" -p "$CI_REGISTRY_PASSWORD" r.sectorq.eu
|
||||
- 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/'
|
||||
Reference in New Issue
Block a user