2023-12-27 17:07:15 +01:00
|
|
|
stages:
|
|
|
|
- login
|
|
|
|
- build
|
|
|
|
- push
|
|
|
|
- deploy
|
|
|
|
|
2023-12-27 17:10:36 +01:00
|
|
|
variables:
|
|
|
|
GL_TOKEN: $GL_TOKEN
|
2024-01-02 16:45:19 +01:00
|
|
|
VERSION: '0.2.18'
|
2023-12-27 17:10:36 +01:00
|
|
|
|
2023-12-27 17:07:15 +01:00
|
|
|
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
|
2023-12-28 11:32:02 +01:00
|
|
|
script:
|
|
|
|
- sudo docker build -t hub.0w.tf/milka64/kabot:$VERSION .
|
|
|
|
- sudo docker build -t hub.0w.tf/milka64/kabot:latest .
|
2023-12-27 17:07:15 +01:00
|
|
|
|
|
|
|
push:
|
|
|
|
stage: push
|
2023-12-28 11:32:02 +01:00
|
|
|
script:
|
|
|
|
- sudo docker push hub.0w.tf/milka64/kabot:$VERSION
|
|
|
|
- sudo docker push hub.0w.tf/milka64/kabot:latest
|
2023-12-27 17:07:15 +01:00
|
|
|
|
|
|
|
login:
|
|
|
|
stage: login
|
2023-12-27 17:12:00 +01:00
|
|
|
script: sudo docker login -u milka64 -p $GL_TOKEN hub.0w.tf
|