2024-04-04 12:31:36 +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
|
2024-04-04 13:49:40 +00:00
|
|
|
repo: git.autonomic.zone/ruangrupa/lumbung-kios-astro
|
2024-04-04 12:31:36 +00:00
|
|
|
auto_tag: true
|
|
|
|
registry: git.autonomic.zone
|
|
|
|
context: astro
|
|
|
|
dockerfile: astro/Dockerfile
|
|
|
|
target: prod
|
|
|
|
- name: publish payload container
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
username: 3wordchant
|
|
|
|
password:
|
|
|
|
from_secret: git_autonomic_zone_token_3wc
|
2024-04-04 13:49:40 +00:00
|
|
|
repo: git.autonomic.zone/ruangrupa/lumbung-kios-payload
|
2024-04-04 12:31:36 +00:00
|
|
|
auto_tag: true
|
|
|
|
registry: git.autonomic.zone
|
|
|
|
context: payload
|
|
|
|
dockerfile: payload/Dockerfile
|
|
|
|
target: prod
|
2024-04-04 14:59:14 +00:00
|
|
|
- name: deploy stack
|
|
|
|
image: git.coopcloud.tech/coop-cloud/stack-ssh-deploy:latest
|
|
|
|
settings:
|
|
|
|
stack: kios_lumbung_space
|
|
|
|
host: lumbung.space
|
|
|
|
deploy_key:
|
|
|
|
from_secret: drone_ssh_lumbung.space
|
|
|
|
environment:
|
|
|
|
DOMAIN: kios.lumbung.space
|
|
|
|
STACK_NAME: kios_lumbung_space
|
|
|
|
SECRET_PAYLOAD_SECRET_VERSION: v1
|
|
|
|
SECRET_TOKEN_VERSION: v1
|
|
|
|
SECRET_MONGO_PASSWORD_VERSION: v1
|
|
|
|
depends_on:
|
2024-04-04 15:00:57 +00:00
|
|
|
- publish astro container
|
|
|
|
- publish payload container
|
2024-04-04 12:31:36 +00:00
|
|
|
trigger:
|
|
|
|
branch:
|
|
|
|
- main
|
|
|
|
event:
|
|
|
|
exclude:
|
|
|
|
- pull_request
|
|
|
|
|