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:
|
||||
- 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:
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user