Refactor discordWebhookSuspisiousAlertMiddleware.js to use setupData variable within the sendDiscordWebhook function
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2024-05-08 13:49:45 +02:00
parent 6102b9fa64
commit 1c7f9bbaa0
2 changed files with 18 additions and 8 deletions

View File

@@ -13,13 +13,27 @@ steps:
- npm install
- node -v
- name: extract-version
image: node:alpine
commands:
- npm install -g json
- echo $(json -f package.json version) > .version
volumes:
- name: shared
path: /drone/src
- name: build-docker-image
image: plugins/docker
settings:
repo: swiftlogiclabs/cdn-app-insider
tags: latest
tags:
- latest
- $(cat .version)
dockerfile: Dockerfile
username:
from_secret: docker_username
password:
from_secret: docker_password
from_secret: docker_password
volumes:
- name: shared
path: /drone/src