add .circleci
This commit is contained in:
parent
dc70752cfe
commit
843f925b68
|
@ -0,0 +1,29 @@
|
|||
version: 2
|
||||
jobs:
|
||||
build:
|
||||
docker:
|
||||
- image: circleci/golang:1.15
|
||||
working_directory: ~/twhelpdcbot
|
||||
steps:
|
||||
- checkout
|
||||
- setup_remote_docker
|
||||
# start proprietary DB using private Docker image
|
||||
# with credentials stored in the UI
|
||||
- run: |
|
||||
docker login -u $DOCKER_LOGIN -p $DOCKER_PASSWORD
|
||||
# build the application image
|
||||
- run: docker build -t $DOCKER_LOGIN/twhelp-version-website:latest .
|
||||
|
||||
# deploy the image
|
||||
- run: docker push $DOCKER_LOGIN/twhelp-version-website:latest
|
||||
workflows:
|
||||
version: 2
|
||||
deploy_prod:
|
||||
jobs:
|
||||
- build:
|
||||
context: TWHelp
|
||||
filters:
|
||||
branches:
|
||||
only:
|
||||
- master
|
||||
|
2
go.mod
2
go.mod
|
@ -13,6 +13,6 @@ require (
|
|||
github.com/robfig/cron/v3 v3.0.1
|
||||
github.com/sirupsen/logrus v1.7.0
|
||||
github.com/tribalwarshelp/golang-sdk v0.0.0-20210115181344-377475f6124a
|
||||
github.com/tribalwarshelp/shared v0.0.0-20210115163415-972e2df3f7db
|
||||
github.com/tribalwarshelp/shared v0.0.0-20210116195235-d8d19c3e6558
|
||||
golang.org/x/text v0.3.3
|
||||
)
|
||||
|
|
2
go.sum
2
go.sum
|
@ -108,6 +108,8 @@ github.com/tribalwarshelp/golang-sdk v0.0.0-20210115181344-377475f6124a h1:FgGlI
|
|||
github.com/tribalwarshelp/golang-sdk v0.0.0-20210115181344-377475f6124a/go.mod h1:5TV566+A6eY09l+6UfUVdWTJTLnFAHj+n956azq1hkM=
|
||||
github.com/tribalwarshelp/shared v0.0.0-20210115163415-972e2df3f7db h1:RzMEF4BP3YJ7jJOyYO00TdeB6DY7g0Dp/8cQ8t6WKzw=
|
||||
github.com/tribalwarshelp/shared v0.0.0-20210115163415-972e2df3f7db/go.mod h1:vtDs7EjEysk4dpFPfu3c4lkICXZYIRV0BrT7rsqG0dw=
|
||||
github.com/tribalwarshelp/shared v0.0.0-20210116195235-d8d19c3e6558 h1:P9dD85ZndCjS/HyhVM7jXEyLru6mRltrAE3Pq5nd+lU=
|
||||
github.com/tribalwarshelp/shared v0.0.0-20210116195235-d8d19c3e6558/go.mod h1:vtDs7EjEysk4dpFPfu3c4lkICXZYIRV0BrT7rsqG0dw=
|
||||
github.com/vmihailenco/bufpool v0.1.11 h1:gOq2WmBrq0i2yW5QJ16ykccQ4wH9UyEsgLm6czKAd94=
|
||||
github.com/vmihailenco/bufpool v0.1.11/go.mod h1:AFf/MOy3l2CFTKbxwt0mp2MwnqjNEs5H/UxrkA5jxTQ=
|
||||
github.com/vmihailenco/msgpack/v4 v4.3.11 h1:Q47CePddpNGNhk4GCnAx9DDtASi2rasatE0cd26cZoE=
|
||||
|
|
Reference in New Issue