generated from autonomic-cooperative/astro-payload-template
Astro build on code changes
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
parent
b83ce8c97a
commit
b8b10670f9
29
.drone.yml
29
.drone.yml
@ -14,6 +14,13 @@ steps:
|
|||||||
registry: git.autonomic.zone
|
registry: git.autonomic.zone
|
||||||
context: astro
|
context: astro
|
||||||
dockerfile: astro/Dockerfile
|
dockerfile: astro/Dockerfile
|
||||||
|
trigger: &exclude-event-custom
|
||||||
|
branch:
|
||||||
|
- main
|
||||||
|
event:
|
||||||
|
exclude:
|
||||||
|
- custom
|
||||||
|
|
||||||
- name: publish payload dev container
|
- name: publish payload dev container
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
settings: &payload-build-settings
|
settings: &payload-build-settings
|
||||||
@ -23,6 +30,9 @@ steps:
|
|||||||
context: payload
|
context: payload
|
||||||
dockerfile: payload/Dockerfile
|
dockerfile: payload/Dockerfile
|
||||||
target: dev
|
target: dev
|
||||||
|
trigger:
|
||||||
|
>>: &exclude-event-custom
|
||||||
|
|
||||||
- name: publish payload prod container
|
- name: publish payload prod container
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
settings:
|
settings:
|
||||||
@ -30,6 +40,9 @@ 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
|
||||||
|
trigger:
|
||||||
|
>>: &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
|
||||||
settings:
|
settings:
|
||||||
@ -50,17 +63,9 @@ 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
|
||||||
trigger:
|
trigger:
|
||||||
branch:
|
>>: &exclude-event-custom
|
||||||
- main
|
|
||||||
event:
|
|
||||||
exclude:
|
|
||||||
- custom
|
|
||||||
---
|
|
||||||
kind: pipeline
|
|
||||||
name: build astro
|
|
||||||
|
|
||||||
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:
|
environment:
|
||||||
@ -80,7 +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
|
||||||
|
|
||||||
trigger:
|
|
||||||
event:
|
|
||||||
- custom
|
|
||||||
|
Loading…
Reference in New Issue
Block a user