--- kind: pipeline type: docker name: Waypoint #workspace: # path: /drone/workspace image_pull_secrets: - dockerconfig steps: - name: build environment: REGISTRY_URL: registry.digitalocean.com REGISTRY_TOKEN: from_secret: REGISTRY_TOKEN image: docker:dind volumes: - name: dockersock #path: /var/run/docker.sock path: /var/run commands: - sleep 5 # give docker enough time to start - docker login -u $REGISTRY_TOKEN -p $REGISTRY_TOKEN $REGISTRY_URL - addgroup --gid 1000 user - adduser -D -g '' -G user -u 1000 user - chown -R user:user /drone/src - docker run -v /drone/src/:/app/src/ --rm $REGISTRY_URL/smaug/smaug:latest build - 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: - pwd - ls -la - waypoint init - waypoint build - waypoint deploy -release=false - waypoint release -prune-retain=0 - name: gitea_release image: plugins/gitea-release settings: api_key: from_secret: GITEA_API_KEY base_url: https://git.smaug.dev files: - builds/*-html5.zip checksum: - sha512 when: event: - tag services: - name: docker image: docker:dind privileged: true volumes: - name: dockersock #path: /var/run/docker.sock path: /var/run volumes: - name: dockersock temp: {} #host: #path: /var/run/docker.sock trigger: branch: - master - main event: - push - pull_request - custom --- kind: secret name: WAYPOINT_SERVER_TOKEN data: yYSmJ+ShC0BcgGptRBVK2pbdagqE+N03A5++izgkwIgs1IyHIDfpzrdtlVtkvMHAnw==