astro-payload-test/.drone.yml

67 lines
1.9 KiB
YAML
Raw Normal View History

2024-05-17 22:32:32 +00:00
---
kind: pipeline
name: publish pipeline
steps:
- name: publish astro container
image: plugins/docker
settings:
username: 3wordchant
password:
from_secret: git_autonomic_zone_token_3wc
# NOTE: edit this if you want your image called something else
2024-05-17 22:38:39 +00:00
repo: git.autonomic.zone/autonomic-cooperative/astro-payload-test-astro
2024-05-17 22:32:32 +00:00
auto_tag: true
registry: git.autonomic.zone
context: astro
dockerfile: astro/Dockerfile
- name: publish payload container
image: plugins/docker
settings:
username: 3wordchant
password:
from_secret: git_autonomic_zone_token_3wc
# NOTE: edit this if you want your image called something else
2024-05-17 22:38:39 +00:00
repo: git.autonomic.zone/autonomic-cooperative/astro-payload-test-payload
2024-05-17 22:32:32 +00:00
auto_tag: true
registry: git.autonomic.zone
context: payload
dockerfile: payload/Dockerfile
target: prod
# See https://docz.autonomic.zone/doc/setting-up-auto-deployment-using-drone-I4j2onjaKT
- name: deploy stack
image: git.coopcloud.tech/coop-cloud/stack-ssh-deploy:latest
settings:
2024-05-17 22:38:39 +00:00
stack: paystro_swarm-demo_autonomic_zone
host: swarm-demo.autonomic.zone
2024-05-17 22:32:32 +00:00
deploy_key:
2024-05-17 22:38:39 +00:00
from_secret: drone_ssh_swarm-demo.autonomic.zone
2024-05-17 22:32:32 +00:00
environment:
2024-05-17 22:44:42 +00:00
DOMAIN: paystro.swarm-demo.autonomic.zone
2024-05-17 22:38:39 +00:00
STACK_NAME: paystro_swarm-demo_autonomic_zone
2024-05-17 22:32:32 +00:00
SECRET_PAYLOAD_SECRET_VERSION: v1
SECRET_TOKEN_VERSION: v1
SECRET_MONGO_PASSWORD_VERSION: v1
NGINX_CONF_VERSION: v1
depends_on:
2024-05-17 22:38:39 +00:00
# - publish astro container
2024-05-17 22:32:32 +00:00
- publish payload container
trigger:
branch:
- main
event:
exclude:
- pull_request
2024-05-17 22:51:47 +00:00
---
kind: pipeline
name: build astro
2024-05-17 22:32:32 +00:00
2024-05-17 22:51:47 +00:00
steps:
- name: build astro content
2024-05-17 22:55:09 +00:00
image: git.autonomic.zone/autonomic-cooperative/astro-payload-test-astro:latest
2024-05-17 22:51:47 +00:00
commands:
- yarn build
trigger:
event:
- custom