generated from autonomic-cooperative/astro-payload-template
Compare commits
No commits in common. "c90d2c0d9b997cd9e2dcb511fc3ccbcdeedc0c41" and "e1a782ad39134f7c9fe756c40d62f563e0fa01db" have entirely different histories.
c90d2c0d9b
...
e1a782ad39
19
.drone.yml
19
.drone.yml
@ -14,7 +14,7 @@ steps:
|
|||||||
registry: git.autonomic.zone
|
registry: git.autonomic.zone
|
||||||
context: astro
|
context: astro
|
||||||
dockerfile: astro/Dockerfile
|
dockerfile: astro/Dockerfile
|
||||||
when: &exclude-event-custom
|
trigger: &exclude-event-custom
|
||||||
branch:
|
branch:
|
||||||
- main
|
- main
|
||||||
event:
|
event:
|
||||||
@ -30,8 +30,8 @@ steps:
|
|||||||
context: payload
|
context: payload
|
||||||
dockerfile: payload/Dockerfile
|
dockerfile: payload/Dockerfile
|
||||||
target: dev
|
target: dev
|
||||||
when:
|
trigger:
|
||||||
<<: *exclude-event-custom
|
<< *exclude-event-custom
|
||||||
|
|
||||||
- name: publish payload prod container
|
- name: publish payload prod container
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
@ -40,8 +40,8 @@ steps:
|
|||||||
username: 3wordchant
|
username: 3wordchant
|
||||||
repo: git.autonomic.zone/autonomic-cooperative/astro-payload-test-payload
|
repo: git.autonomic.zone/autonomic-cooperative/astro-payload-test-payload
|
||||||
target: prod
|
target: prod
|
||||||
when:
|
trigger:
|
||||||
<<: *exclude-event-custom
|
<< *exclude-event-custom
|
||||||
|
|
||||||
- name: deploy stack
|
- name: deploy stack
|
||||||
image: git.coopcloud.tech/coop-cloud/stack-ssh-deploy:latest
|
image: git.coopcloud.tech/coop-cloud/stack-ssh-deploy:latest
|
||||||
@ -63,8 +63,8 @@ steps:
|
|||||||
PAYLOAD_URL: "https://admin.paystro.swarm-demo.autonomic.zone"
|
PAYLOAD_URL: "https://admin.paystro.swarm-demo.autonomic.zone"
|
||||||
depends_on:
|
depends_on:
|
||||||
- publish payload prod container
|
- publish payload prod container
|
||||||
when:
|
trigger:
|
||||||
<<: *exclude-event-custom
|
<< *exclude-event-custom
|
||||||
|
|
||||||
- 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
|
||||||
@ -74,9 +74,6 @@ steps:
|
|||||||
- cd astro
|
- cd astro
|
||||||
- mv /base/node_modules .
|
- mv /base/node_modules .
|
||||||
- yarn build
|
- yarn build
|
||||||
depends_on:
|
|
||||||
- deploy stack
|
|
||||||
|
|
||||||
- name: copy built content to stack
|
- name: copy built content to stack
|
||||||
image: git.coopcloud.tech/coop-cloud/docker-cp-deploy:latest
|
image: git.coopcloud.tech/coop-cloud/docker-cp-deploy:latest
|
||||||
settings:
|
settings:
|
||||||
@ -88,5 +85,3 @@ steps:
|
|||||||
dest: /usr/share/nginx/html/
|
dest: /usr/share/nginx/html/
|
||||||
deploy_key:
|
deploy_key:
|
||||||
from_secret: drone_ssh_swarm-demo.autonomic.zone
|
from_secret: drone_ssh_swarm-demo.autonomic.zone
|
||||||
depends_on:
|
|
||||||
- build astro content
|
|
||||||
|
Loading…
Reference in New Issue
Block a user