forked from JustinGuese/python_tradingbot_framework
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
40 lines (35 loc) · 798 Bytes
/
.gitlab-ci.yml
File metadata and controls
40 lines (35 loc) · 798 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
variables:
IMAGE: $CI_REGISTRY/$CI_PROJECT_PATH:$CI_COMMIT_BRANCH
DOCKER_TLS_CERTDIR: "/certs"
default:
services:
- docker:25.0.5-dind
stages:
- build
- deploy
build-docker:
stage: build
image: docker:25.0.5-git
# tags:
# - dfserver
script:
- echo "$CI_REGISTRY_PASSWORD" | docker login $CI_REGISTRY -u $CI_REGISTRY_USER --password-stdin
- docker build --pull -t $IMAGE .
- docker push $IMAGE
helm-kubectl-deploy:
stage: deploy
tags:
- dfserver
image:
name: dtzar/helm-kubectl
entrypoint: [ '' ]
dependencies:
- build-docker
script:
# Deploy trading bots and PostgreSQL using Helm
- |
helm upgrade --install tradingbots \
./helm/tradingbots \
--create-namespace \
--namespace tradingbots-2025
environment: production