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