Update astro image, try copying built content into volume
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is failing

This commit is contained in:
3wc 2024-05-18 00:30:41 -03:00
parent 436892ef56
commit 24210c516c
2 changed files with 15 additions and 4 deletions

View File

@ -58,11 +58,22 @@ name: build astro
steps:
- name: build astro content
image: git.autonomic.zone/autonomic-cooperative/astro-payload-test-astro:latest
environment:
PAYLOAD_URL: "https://admin.paystro.swarm-demo.autonomic.zone"
commands:
- pwd
- ls
- cd astro
- mv /build/node_modules .
- yarn build
- name: copy built content to stack
image: git.coopcloud.tech/coop-cloud/docker-cp-deploy:latest
settings:
host: swarm-demo.autonomic.zone
service: paystro_swarm-demo_autonomic_zone_app
source: astro/dist/*
exec_pre: rm -rf /usr/share/nginx/html/*
dest: /usr/share/nginx/html/
deploy_key:
from_secret: drone_ssh_swarm-demo.autonomic.zone
trigger:
event:

View File

@ -11,6 +11,6 @@ CMD ["yarn","dev"]
FROM base AS build
ENV NODE_ENV=production
WORKDIR /build
COPY --from=base /base .
# WORKDIR /build
# COPY --from=base /base .
ADD "https://random-uuid.deno.dev" skipcache