33 lines
1.0 KiB
YAML
33 lines
1.0 KiB
YAML
---
|
|
kind: pipeline
|
|
name: publish pipeline
|
|
steps:
|
|
- name: publish nextjs container
|
|
image: plugins/docker
|
|
settings:
|
|
username: 3wordchant
|
|
password:
|
|
from_secret: git_autonomic_zone_token_3wc
|
|
auto_tag: true
|
|
registry: git.autonomic.zone
|
|
dockerfile: ./Dockerfile
|
|
repo: git.autonomic.zone/autonomic-cooperative/nextjs
|
|
|
|
- name: deploy stack
|
|
image: git.coopcloud.tech/coop-cloud/stack-ssh-deploy:latest
|
|
settings:
|
|
compose: docker-compose.prod.yml
|
|
stack: nextload-demo_autonomic_zone
|
|
host: swarm-demo.autonomic.zone
|
|
deploy_key:
|
|
from_secret: drone_ssh_swarm-demo.autonomic.zone
|
|
environment:
|
|
DOMAIN: nextload.swarm-demo.autonomic.zone
|
|
STACK_NAME: nextload-demo_autonomic_zone
|
|
SECRET_TOKEN_VERSION: v1
|
|
SECRET_PAYLOAD_SECRET_VERSION: v1
|
|
SECRET_MONGO_PASSWORD_VERSION: v1
|
|
REPOSITORY: "autonomic-cooperative/nextload"
|
|
DRONE_URL: "https://drone.autonomic.zone"
|
|
depends_on:
|
|
- publish nextjs container |