Add environment variable NAME to docker-compose.yml

This commit is contained in:
Max Schmidt 2023-06-07 12:21:40 +02:00
parent 9e94b582d8
commit 317e01c498
2 changed files with 2 additions and 1 deletions

View File

@ -15,6 +15,7 @@ services:
build:
context: payload
environment:
NAME: ${NAME}
PAYLOAD_URL: ${PAYLOAD_URL}
PAYLOAD_PORT: ${PAYLOAD_PORT}
PAYLOAD_SECRET: ${PAYLOAD_SECRET}

View File

@ -18,7 +18,7 @@ const Posts: CollectionConfig = {
try {
console.log(
await fetch(
`https://api.github.com/repos/mooxl/${process.env.name}/dispatches`,
`https://api.github.com/repos/mooxl/${process.env.NAME}/dispatches`,
{
method: "POST",
headers: {