diff --git a/.drone.yml b/.drone.yml index d4f7e03..3be0857 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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 diff --git a/payload/src/collections/Posts.ts b/payload/src/collections/Posts.ts index c50f169..e6e0c60 100644 --- a/payload/src/collections/Posts.ts +++ b/payload/src/collections/Posts.ts @@ -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: {