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.
59 lines
1.2 KiB
59 lines
1.2 KiB
---
|
|
|
|
kind: pipeline
|
|
type: docker
|
|
name: Waypoint
|
|
|
|
environment:
|
|
WAYPOINT_SERVER_ADDR: waypoint.smaug.dev:9701
|
|
WAYPOINT_SERVER_TLS: 1
|
|
WAYPOINT_SERVER_TLS_SKIP_VERIFY: 1
|
|
|
|
steps:
|
|
- name: build
|
|
image: registry.gitlab.com/gitlab-org/waypoint-images:latest
|
|
volumes:
|
|
- name: dockersock
|
|
path: /var/run/docker.sock
|
|
commands:
|
|
- waypoint init
|
|
- waypoint build
|
|
environment:
|
|
WAYPOINT_SERVER_TOKEN:
|
|
from_secret: WAYPOINT_SERVER_TOKEN
|
|
|
|
- name: deploy
|
|
image: registry.gitlab.com/gitlab-org/waypoint-images:latest
|
|
volumes:
|
|
- name: dockersock
|
|
path: /var/run/docker.sock
|
|
commands:
|
|
- waypoint deploy -local=false -release=false
|
|
environment:
|
|
WAYPOINT_SERVER_TOKEN:
|
|
from_secret: WAYPOINT_SERVER_TOKEN
|
|
|
|
- name: release
|
|
image: registry.gitlab.com/gitlab-org/waypoint-images:latest
|
|
volumes:
|
|
- name: dockersock
|
|
path: /var/run/docker.sock
|
|
commands:
|
|
- waypoint release -local=false -prune-retain=0
|
|
environment:
|
|
WAYPOINT_SERVER_TOKEN:
|
|
from_secret: WAYPOINT_SERVER_TOKEN
|
|
|
|
volumes:
|
|
- name: dockersock
|
|
host:
|
|
path: /var/run/docker.sock
|
|
|
|
trigger:
|
|
branch:
|
|
- master
|
|
- main
|
|
event:
|
|
- push
|
|
- pull_request
|
|
- custom
|
|
|