add ci pipline

This commit is contained in:
root
2024-04-03 20:22:07 +03:00
parent 3413cffce5
commit f2ea1177df
+35
View File
@@ -0,0 +1,35 @@
stages:
- build
- deploy
build_backend:
stage: build
tags:
- ci-test01
script: docker build -t my_backend notes-backend/
only:
- ci-test01
build_frontend:
stage: build
tags:
- ci-test01
script: docker build -t my_frontend notes-app/
only:
- ci-test01
build_nginx:
stage: build
tags:
- ci-test01
script: docker build -t my_nginx nginx/
only:
- ci-test01
deploy_network:
stage: deploy
tags:
- ci-test01
script: docker network create app || true
only:
- ci-test01