This commit is contained in:
parent
541c494cc1
commit
d7621e3c8d
18
.drone.yml
18
.drone.yml
@ -16,14 +16,6 @@ steps:
|
|||||||
- npm install
|
- npm install
|
||||||
- npm run build
|
- npm run build
|
||||||
|
|
||||||
- name: Build Full Stack via Docker Compose
|
|
||||||
image: docker:24.0.5-cli
|
|
||||||
volumes:
|
|
||||||
- name: dockersock
|
|
||||||
path: /var/run/docker.sock
|
|
||||||
commands:
|
|
||||||
- docker compose -f docker-compose.yml build
|
|
||||||
|
|
||||||
- name: Run SonarQube Scan
|
- name: Run SonarQube Scan
|
||||||
image: sonarsource/sonar-scanner-cli
|
image: sonarsource/sonar-scanner-cli
|
||||||
environment:
|
environment:
|
||||||
@ -60,9 +52,7 @@ steps:
|
|||||||
WEBHOOK_SECRET:
|
WEBHOOK_SECRET:
|
||||||
from_secret: WEBHOOK_SECRET
|
from_secret: WEBHOOK_SECRET
|
||||||
commands:
|
commands:
|
||||||
- 'curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer $WEBHOOK_SECRET" -d "{\"branch\":\"master\"}" "$WEBHOOK_URL"'
|
- >
|
||||||
|
curl -X POST -H "Content-Type: application/json"
|
||||||
volumes:
|
-H "Authorization: Bearer $WEBHOOK_SECRET"
|
||||||
- name: dockersock
|
-d "{\"branch\":\"master\"}" "$WEBHOOK_URL"
|
||||||
host:
|
|
||||||
path: /var/run/docker.sock
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user