Split DRONE_URL out into setting

This commit is contained in:
3wc 2024-05-18 18:29:42 -03:00
parent 37c0cd98b7
commit 7d071a2672
2 changed files with 2 additions and 1 deletions

View File

@ -44,6 +44,7 @@ steps:
SECRET_MONGO_PASSWORD_VERSION: v1
NGINX_CONF_VERSION: v1
REPOSITORY: "autonomic-cooperative/astro-payload-test"
DRONE_URL: "https://drone.autonomic.zone"
PAYLOAD_URL: "https://admin.paystro.swarm-demo.autonomic.zone"
depends_on:
- publish payload container

View File

@ -19,7 +19,7 @@ const Posts: CollectionConfig = {
process.env.NODE_ENV !== "development" &&
console.log(
await fetch(
`https://drone.autonomic.zone/api/repos/${process.env.REPOSITORY}/builds`,
`${process.env.DRONE_URL}api/repos/${process.env.REPOSITORY}/builds`,
{
method: "POST",
headers: {