heya
Signed-off-by: Max Schmidt <max.schmidt@outlook.de>
This commit is contained in:
parent
75e0a0192d
commit
88f49952e3
2
.github/workflows/push.yml
vendored
2
.github/workflows/push.yml
vendored
@ -22,7 +22,6 @@ jobs:
|
|||||||
mkdir ${{ secrets.PATH }}
|
mkdir ${{ secrets.PATH }}
|
||||||
cd ${{ secrets.PATH }}
|
cd ${{ secrets.PATH }}
|
||||||
git clone -b prod https://github.com/${{ github.repository }} .
|
git clone -b prod https://github.com/${{ github.repository }} .
|
||||||
cp .env ./astro/.env
|
|
||||||
sed -i "s/ASTRO_URL=.*/ASTRO_URL=${{ vars.ASTRO_URL }}/" .env
|
sed -i "s/ASTRO_URL=.*/ASTRO_URL=${{ vars.ASTRO_URL }}/" .env
|
||||||
sed -i "s/PAYLOAD_URL=.*/PAYLOAD_URL=${{ vars.PAYLOAD_URL }}/" .env
|
sed -i "s/PAYLOAD_URL=.*/PAYLOAD_URL=${{ vars.PAYLOAD_URL }}/" .env
|
||||||
sed -i "s/PAYLOAD_PORT=.*/PAYLOAD_PORT=${{ secrets.PAYLOAD_PORT }}/" .env
|
sed -i "s/PAYLOAD_PORT=.*/PAYLOAD_PORT=${{ secrets.PAYLOAD_PORT }}/" .env
|
||||||
@ -31,5 +30,6 @@ jobs:
|
|||||||
sed -i "s/MONGODB_USER=.*/MONGODB_USER=${{ secrets.MONGODB_USER }}/" .env
|
sed -i "s/MONGODB_USER=.*/MONGODB_USER=${{ secrets.MONGODB_USER }}/" .env
|
||||||
sed -i "s/MONGODB_PW=.*/MONGODB_PW=${{ secrets.MONGODB_PW }}/" .env
|
sed -i "s/MONGODB_PW=.*/MONGODB_PW=${{ secrets.MONGODB_PW }}/" .env
|
||||||
sed -i "s/NAME=.*/NAME=${{ vars.NAME }}/" .env
|
sed -i "s/NAME=.*/NAME=${{ vars.NAME }}/" .env
|
||||||
|
cp .env ./astro/.env
|
||||||
fi
|
fi
|
||||||
yarn prod
|
yarn prod
|
||||||
|
@ -13,6 +13,7 @@ FROM base AS build
|
|||||||
ENV NODE_ENV=production
|
ENV NODE_ENV=production
|
||||||
WORKDIR /build
|
WORKDIR /build
|
||||||
COPY --from=base /base ./
|
COPY --from=base /base ./
|
||||||
|
ADD "https://www.random.org/cgi-bin/randbyte?nbytes=10&format=h" skipcache
|
||||||
RUN yarn build
|
RUN yarn build
|
||||||
|
|
||||||
FROM nginx:stable AS prod
|
FROM nginx:stable AS prod
|
||||||
|
@ -41,6 +41,8 @@ services:
|
|||||||
- traefik.http.routers.${NAME}-payload.entrypoints=https
|
- traefik.http.routers.${NAME}-payload.entrypoints=https
|
||||||
- traefik.http.routers.${NAME}-payload.tls.certresolver=httpresolver
|
- traefik.http.routers.${NAME}-payload.tls.certresolver=httpresolver
|
||||||
- traefik.docker.network=traefik_network
|
- traefik.docker.network=traefik_network
|
||||||
|
networks:
|
||||||
|
- traefik_network
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
traefik_network:
|
traefik_network:
|
||||||
|
@ -23,5 +23,5 @@ COPY package*.json .
|
|||||||
RUN yarn install --production
|
RUN yarn install --production
|
||||||
COPY --from=build /build/dist ./dist
|
COPY --from=build /build/dist ./dist
|
||||||
COPY --from=build /build/build ./build
|
COPY --from=build /build/build ./build
|
||||||
EXPOSE 3001
|
EXPOSE 3000
|
||||||
CMD ["yarn", "serve"]
|
CMD ["yarn", "serve"]
|
@ -8,7 +8,10 @@ const Posts: CollectionConfig = {
|
|||||||
},
|
},
|
||||||
access: {
|
access: {
|
||||||
read: () => true,
|
read: () => true,
|
||||||
|
create: () => true,
|
||||||
|
update: () => true,
|
||||||
},
|
},
|
||||||
|
|
||||||
fields: [
|
fields: [
|
||||||
{
|
{
|
||||||
name: "title",
|
name: "title",
|
||||||
|
Loading…
Reference in New Issue
Block a user