Add environment variable NAME to docker-compose.yml
This commit is contained in:
parent
9e94b582d8
commit
317e01c498
@ -15,6 +15,7 @@ services:
|
||||
build:
|
||||
context: payload
|
||||
environment:
|
||||
NAME: ${NAME}
|
||||
PAYLOAD_URL: ${PAYLOAD_URL}
|
||||
PAYLOAD_PORT: ${PAYLOAD_PORT}
|
||||
PAYLOAD_SECRET: ${PAYLOAD_SECRET}
|
||||
|
@ -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: {
|
||||
|
Loading…
Reference in New Issue
Block a user