generated from autonomic-cooperative/astro-payload-template
Update astro image, try copying built content into volume
This commit is contained in:
parent
436892ef56
commit
24210c516c
15
.drone.yml
15
.drone.yml
@ -58,11 +58,22 @@ name: build astro
|
|||||||
steps:
|
steps:
|
||||||
- name: build astro content
|
- name: build astro content
|
||||||
image: git.autonomic.zone/autonomic-cooperative/astro-payload-test-astro:latest
|
image: git.autonomic.zone/autonomic-cooperative/astro-payload-test-astro:latest
|
||||||
|
environment:
|
||||||
|
PAYLOAD_URL: "https://admin.paystro.swarm-demo.autonomic.zone"
|
||||||
commands:
|
commands:
|
||||||
- pwd
|
|
||||||
- ls
|
|
||||||
- cd astro
|
- cd astro
|
||||||
|
- mv /build/node_modules .
|
||||||
- yarn build
|
- 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:
|
trigger:
|
||||||
event:
|
event:
|
||||||
|
@ -11,6 +11,6 @@ CMD ["yarn","dev"]
|
|||||||
|
|
||||||
FROM base AS build
|
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://random-uuid.deno.dev" skipcache
|
ADD "https://random-uuid.deno.dev" skipcache
|
||||||
|
Loading…
Reference in New Issue
Block a user