ci-cd
This commit is contained in:
parent
ff98d6b453
commit
e8fef9801e
1 changed files with 21 additions and 0 deletions
21
.gitlab-ci.yml
Normal file
21
.gitlab-ci.yml
Normal file
|
@ -0,0 +1,21 @@
|
|||
stages:
|
||||
- login
|
||||
- build
|
||||
- push
|
||||
- deploy
|
||||
|
||||
deploy:
|
||||
stage: deploy
|
||||
script : sudo docker-compose --env-file /data/docker/compose-files/others.env -f /data/docker/compose-files/others.yml up -d
|
||||
|
||||
build:
|
||||
stage: build
|
||||
script: sudo docker build -t hub.0w.tf/milka64/kabot:latest .
|
||||
|
||||
push:
|
||||
stage: push
|
||||
script: sudo docker push hub.0w.tf/milka64/kabot:latest
|
||||
|
||||
login:
|
||||
stage: login
|
||||
script: sudo docker login -u milka64 -p $GL_TOKEN
|
Loading…
Reference in a new issue