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