--- 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 WP_VAR_redis_password: from_secret: REDIS_PASSWORD - 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 WP_VAR_redis_password: from_secret: REDIS_PASSWORD - 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 WP_VAR_redis_password: from_secret: REDIS_PASSWORD volumes: - name: dockersock host: path: /var/run/docker.sock trigger: branch: - master - main event: - push - pull_request - custom