A prototype of a web service for translating and sharing digital books and other textual media through a RESTful API.
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.
 
 

107 lines
2.6 KiB

workspace:
base: /go
path: src/git.packetlostandfound.us/chiefnoah/baka-moe-ws
pipeline:
dependencies:
image: golang:1.11
environment:
- GO111MODULE=on
commands:
- go get -u
test:
image: golang:1.11
environment:
- GO111MODULE=on
- TOKEN_PRIVATE_KEY=test_private_key
- POSTGRES_USER=test_user
- POSTGRES_PASSWORD=xxxx
- POSTGRES_ADDR=database:5432
- MINIO_ACCESS_KEY=G2BMS2SKJKLDP1PC8U1U
- MINIO_SECRET_KEY="7fzaOyUhyjr6BnziWec0WPYYwsO3EQE2i8XsR/y9"
- MINIO_ADDR=objects:9000
- MINIO_BUCKET_NAME=texts
commands:
- go get github.com/stretchr/testify
- go test -timeout 30s git.packetlostandfound.us/chiefnoah/baka-moe-ws/pkg/...
build:
image: golang:1.11
environment:
- GO111MODULE=on
commands:
- go build git.packetlostandfound.us/chiefnoah/baka-moe-ws/cmd/bakamoews
- pwd
- ls ./
when:
event: [ push, tag ]
# docker-ci:
# image: plugins/docker
# repo: registry.saten.host:5000/chiefnoah/koukaiws
# pull: true
# registry: registry.saten.host:5000
# # username: ${docker_username}
# # password: ${docker_password}
# dockerfile: ./cmd/bakamoews/Docker
# tags:
# - latest
# # secrets: [docker_username, docker_password]
# when:
# event: [deployment, push]
# branches: [master, develop]
# # debug: true
#docker-tag:
# image: plugins/docker
# repo: registry.saten.host:5000/chiefnoah/koukaiws
# registry: registry.saten.host:5000
# dockerfile: ./cmd/bakamoews/Docker
# auto_tag: true
# auto_tag_suffix: linux-amd64
# # secrets: [docker_username, docker_password]
# when:
# event: [tag]
#deploy:
# image: drillster/drone-rsync
# hosts: ["dev01.koukai.xyz"]
# user: deploy
# source: ./bakamoews
# target: /opt/apps/koukaiws
# recursive: true
# delete: true
# secrets: [rsync_key]
# when:
# event: [tag, deployment, push]
# branches: [master, develop, deploy]
# include: ["*"]
# deploy-prod:
# image: drillster/drone-rsync
# hosts: ["prod01.koukai.xyz"]
# user: deploy
# source: ./bakamoews
# target: /opt/apps/koukaiws
# recursive: true
# delete: true
# secrets: [rsync_key]
# when:
# event: [tag, deployment]
# branches: [master]
# include: ["*"]
services:
database:
image: postgres
environment:
- POSTGRES_USER=test_user
- POSTGRES_PASSWORD=xxxx
objects:
image: minio/minio
environment:
- MINIO_ACCESS_KEY=G2BMS2SKJKLDP1PC8U1U
- MINIO_SECRET_KEY="7fzaOyUhyjr6BnziWec0WPYYwsO3EQE2i8XsR/y9"