Commit ae5153d5 authored by nguyenvu's avatar nguyenvu

Merge branch 'develop' of http://27.74.255.96:8088/nguyenvu/test-cicd-project-ngvu into develop

parents d1288de7 bfcbfd8d
Pipeline #6936 canceled with stages
in 8 minutes and 45 seconds
...@@ -25,20 +25,11 @@ build: ...@@ -25,20 +25,11 @@ build:
- git submodule update --recursive --remote - git submodule update --recursive --remote
#- echo 'export tag="dev"' >> $cicd_path/env.sh #- echo 'export tag="dev"' >> $cicd_path/env.sh
#- cd $(grep "path" .gitmodules | cut -d "=" -f2 | cut -d " " -f2) #- cd $(grep "path" .gitmodules | cut -d "=" -f2 | cut -d " " -f2)
- pwd - export docker_path=$(pwd)
- export tag="dev" - export tag="dev"
- export image_name=$image_name - export image_name=$image_name
- export CI_REGISTRY_PW=$GIT_PW - export CI_REGISTRY_PW=$GIT_PW
- export CI_REGISTRY_USER=$GIT_USER - export CI_REGISTRY_USER=$GIT_USER
#- echo 'export tag="dev"' >> $cicd_path/env.sh
#- sudo cat build.sh
#- cd ../
#- cicd_url=$(grep "url" .gitmodules | cut -d "=" -f2 | cut -d " " -f2)
#- cd $(grep "path" .gitmodules | cut -d "=" -f2 | cut -d " " -f2)
#- ls -la
#- sudo git clone $cicd_url
#- ls -la
#- cd ../
- current_file_path=$(pwd)/MEU.API/Resources/ReleaseNotes/releasenotes.txt - current_file_path=$(pwd)/MEU.API/Resources/ReleaseNotes/releasenotes.txt
- release_note_folder=/var/www/release_note - release_note_folder=/var/www/release_note
- | - |
...@@ -69,14 +60,8 @@ build: ...@@ -69,14 +60,8 @@ build:
sudo bash -c "echo $value_base64 > $current_file_path" sudo bash -c "echo $value_base64 > $current_file_path"
sudo bash -c "cat $current_file_path > $release_note_folder/$project_name/releasenotes.txt" sudo bash -c "cat $current_file_path > $release_note_folder/$project_name/releasenotes.txt"
- cd $cicd_path - bash $cicd_path/build.sh
- bash build.sh
- cd ../
#- sudo docker build -t $image_name:$tag -f Dockerfile .
#- sudo docker logout registry.gitlab.com
#- echo "$CI_REGISTRY_PW" | sudo docker login registry.gitlab.com -u "$CI_REGISTRY_USER" --password-stdin
#- sudo docker push $image_name:$tag
#- sudo docker rmi $image_name:$tag
only: only:
- develop - develop
tags: tags:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment