mirror of
https://github.com/yldio/copilot.git
synced 2024-11-11 05:40:11 +02:00
ci: add a deployment script
This commit is contained in:
parent
3f1459825c
commit
9140f2a52b
2
Makefile
2
Makefile
@ -1,6 +1,6 @@
|
|||||||
.PHONY: check
|
.PHONY: check
|
||||||
check:
|
check:
|
||||||
@./bin/setup.sh
|
@./bin/setup
|
||||||
|
|
||||||
.PHONY: test-cloudapi-graphql
|
.PHONY: test-cloudapi-graphql
|
||||||
test-cloudapi-graphql:
|
test-cloudapi-graphql:
|
||||||
|
12
bin/deploy
Executable file
12
bin/deploy
Executable file
@ -0,0 +1,12 @@
|
|||||||
|
#! /usr/bin/env bash
|
||||||
|
triton env
|
||||||
|
|
||||||
|
docker-compose build
|
||||||
|
#docker-compose push
|
||||||
|
|
||||||
|
export DOCKER_HOST=$_DOCKER_HOST
|
||||||
|
export DOCKER_CERT_PATH=$_DOCKER_CERT_PATH
|
||||||
|
export DOCKER_TLS_VERIFY=$_DOCKER_TLS_VERIFY
|
||||||
|
|
||||||
|
docker-compose pull
|
||||||
|
docker-compose up -d
|
@ -25,10 +25,8 @@ deployment:
|
|||||||
production: # just a label; label names are completely up to you
|
production: # just a label; label names are completely up to you
|
||||||
branch: master
|
branch: master
|
||||||
commands:
|
commands:
|
||||||
- ./bin/setup.sh
|
- ./bin/setup
|
||||||
- docker-compose pull
|
- ./bin/deploy
|
||||||
- docker-compose build
|
|
||||||
- docker-compose up -d
|
|
||||||
|
|
||||||
## Custom notifications
|
## Custom notifications
|
||||||
# notify:
|
# notify:
|
||||||
|
Loading…
Reference in New Issue
Block a user