Skip to content
Snippets Groups Projects
Commit c1dd1c78 authored by s80984's avatar s80984
Browse files

Update build pipeline

parent 9954dc46
No related branches found
No related tags found
No related merge requests found
Pipeline #14127 failed
...@@ -16,12 +16,6 @@ stages: ...@@ -16,12 +16,6 @@ stages:
- deploy - deploy
- release - release
# .get-container-id: &get-container-id
# |
# # Getting Container ID
# CONTAINER_ID=$(basename $(cat /proc/1/cpuset))
# echo $CONTAINER_ID
job_build-image: job_build-image:
stage: build stage: build
tags: tags:
...@@ -34,17 +28,17 @@ job_build-image: ...@@ -34,17 +28,17 @@ job_build-image:
- docker info - docker info
- docker-compose --version - docker-compose --version
script: script:
- docker-compose up -d --build
# - docker-compose up #--tag "${CI_REGISTRY_IMAGE}:${CI_PIPELINE_IID}-${CI_COMMIT_SHORT_SHA}" ps # - docker-compose up #--tag "${CI_REGISTRY_IMAGE}:${CI_PIPELINE_IID}-${CI_COMMIT_SHORT_SHA}" ps
# - docker-compose build - docker-compose up -d --build
# --file "server/Containerfile" - docker build
# --tag "${CI_REGISTRY_IMAGE}:${CI_PIPELINE_IID}-${CI_COMMIT_SHORT_SHA}" --file "server/Containerfile"
--tag "${CI_REGISTRY_IMAGE}:${CI_PIPELINE_IID}-${CI_COMMIT_SHORT_SHA}"
- docker ps - docker ps
- docker network list - docker network list
# # NOTE: push image to local registry so that it can be accessed in subsequent jobs # # NOTE: push image to local registry so that it can be accessed in subsequent jobs
# - docker login -u ${CI_REGISTRY_USER} -p ${CI_REGISTRY_PASSWORD} ${CI_REGISTRY} - docker login -u ${CI_REGISTRY_USER} -p ${CI_REGISTRY_PASSWORD} ${CI_REGISTRY}
# - docker push "${CI_REGISTRY_IMAGE}:${CI_PIPELINE_IID}-${CI_COMMIT_SHORT_SHA}" - docker push "${CI_REGISTRY_IMAGE}:${CI_PIPELINE_IID}-${CI_COMMIT_SHORT_SHA}"
after_script: after_script:
- docker-compose logs || true - docker-compose logs || true
- docker-compose down || true - docker-compose down || true
......
version: '3' version: '3'
services: services:
mongo: mongo:
container_name: mongo container_name: mongodb
image: mongo image: mongo
ports: ports:
- '27017:27017' - '27017:27017'
volumes: volumes:
- mongodb:/.local/db/data/db - mongodb:/.local/db/data/db
app: app:
container_name: docker-node-mongo container_name: node-mongo-app
# image: .name:rc2
restart: always restart: always
build: ./app/server build: ./app/server
ports: ports:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment