Template for a new Smaug project
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
---
|
|
|
|
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: Waypoint
|
|
|
|
|
|
|
|
workspace:
|
|
|
|
path: /drone/workspace
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: smaug_build
|
|
|
|
image: registry.digitalocean.com/smaug/smaug
|
|
|
|
commands:
|
|
|
|
- ls
|
|
|
|
|
|
|
|
- name: waypoint_deploy
|
|
|
|
image: hashicorp/waypoint:latest
|
|
|
|
environment:
|
|
|
|
WAYPOINT_SERVER_TOKEN:
|
|
|
|
from_secret: WAYPOINT_SERVER_TOKEN
|
|
|
|
WAYPOINT_SERVER_ADDR: waypoint.smaug.dev:9701
|
|
|
|
WAYPOINT_SERVER_TLS: 1
|
|
|
|
WAYPOINT_SERVER_TLS_SKIP_VERIFY: 1
|
|
|
|
commands:
|
|
|
|
- waypoint init
|
|
|
|
- waypoint build -remote
|
|
|
|
- waypoint deploy -remote -release=false
|
|
|
|
- waypoint release -remote -prune-retain=0
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
- main
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- pull_request
|
|
|
|
|
|
|
|
image_pull_secrets:
|
|
|
|
- DOCKER_CONFIG
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
kind: secret
|
|
|
|
name: WAYPOINT_SERVER_TOKEN
|
|
|
|
data: yYSmJ+ShC0BcgGptRBVK2pbdagqE+N03A5++izgkwIgs1IyHIDfpzrdtlVtkvMHAnw==
|