diff --git a/.drone.yml b/.drone.yml index f92fbc9..3298387 100644 --- a/.drone.yml +++ b/.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: diff --git a/astro/Dockerfile b/astro/Dockerfile index 55e04e8..8101e25 100644 --- a/astro/Dockerfile +++ b/astro/Dockerfile @@ -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