Add environment variable NAME to docker-compose.yml
This commit is contained in:
parent
9e94b582d8
commit
317e01c498
@ -15,6 +15,7 @@ services:
|
|||||||
build:
|
build:
|
||||||
context: payload
|
context: payload
|
||||||
environment:
|
environment:
|
||||||
|
NAME: ${NAME}
|
||||||
PAYLOAD_URL: ${PAYLOAD_URL}
|
PAYLOAD_URL: ${PAYLOAD_URL}
|
||||||
PAYLOAD_PORT: ${PAYLOAD_PORT}
|
PAYLOAD_PORT: ${PAYLOAD_PORT}
|
||||||
PAYLOAD_SECRET: ${PAYLOAD_SECRET}
|
PAYLOAD_SECRET: ${PAYLOAD_SECRET}
|
||||||
|
@ -18,7 +18,7 @@ const Posts: CollectionConfig = {
|
|||||||
try {
|
try {
|
||||||
console.log(
|
console.log(
|
||||||
await fetch(
|
await fetch(
|
||||||
`https://api.github.com/repos/mooxl/${process.env.name}/dispatches`,
|
`https://api.github.com/repos/mooxl/${process.env.NAME}/dispatches`,
|
||||||
{
|
{
|
||||||
method: "POST",
|
method: "POST",
|
||||||
headers: {
|
headers: {
|
||||||
|
Loading…
Reference in New Issue
Block a user