Running with gitlab-runner 13.10.0 (54944146)
on builder 32JLusNz
section_start:1620901742:prepare_executor
Preparing the "shell" executor
Using Shell executor...
section_end:1620901742:prepare_executor
section_start:1620901742:prepare_script
Preparing environment
Running on meu...
section_end:1620901742:prepare_script
section_start:1620901742:get_sources
Getting source from Git repository
Fetching changes...
Reinitialized existing Git repository in /home/gitlab-runner/builds/32JLusNz/0/nguyenvu/test-cicd-project-ngvu/.git/
Checking out 79bcd13d as develop...
Updating/initializing submodules recursively...
Synchronizing submodule url for 'cicd'
Entering 'cicd'
Removing env.sh
Entering 'cicd'
HEAD is now at 926a6d6 UPdate cicd
section_end:1620901742:get_sources
section_start:1620901742:step_script
Executing "step_script" stage of the job script
$ echo "Please remember that for dev environment, we use the tag 'dev' only !!!"
Please remember that for dev environment, we use the tag 'dev' only !!!
$ cicd_path=$(pwd)/$(grep "path" .gitmodules | cut -d "=" -f2 | cut -d " " -f2)
$ echo 'export tag="dev"' >> $cicd_path/env.sh
$ cd $(grep "path" .gitmodules | cut -d "=" -f2 | cut -d " " -f2)
$ ls -la
total 44
drwxrwxr-x 3 gitlab-runner gitlab-runner 4096 May 13 10:29 .
drwxrwxr-x 7 gitlab-runner gitlab-runner 4096 May 13 10:26 ..
-rw-rw-r-- 1 gitlab-runner gitlab-runner 1427 May 13 08:33 build-model.sh
-rw-rw-r-- 1 gitlab-runner gitlab-runner 280 May 13 08:33 build.sh
drwxrwxr-x 2 gitlab-runner gitlab-runner 4096 May 13 08:33 CICD
-rw-rw-r-- 1 gitlab-runner gitlab-runner 670 May 13 08:33 deploy.sh
-rw-rw-r-- 1 gitlab-runner gitlab-runner 286 May 13 08:33 docker-compose.yaml
-rw-rw-r-- 1 gitlab-runner gitlab-runner 430 May 13 08:33 Dockerfile
-rw-rw-r-- 1 gitlab-runner gitlab-runner 17 May 13 10:29 env.sh
-rw-rw-r-- 1 gitlab-runner gitlab-runner 29 May 13 08:33 .git
-rw-rw-r-- 1 gitlab-runner gitlab-runner 372 May 13 08:33 release.sh
$ sudo cat env.sh
export tag="dev"
$ cd ../
$ current_file_path=$(pwd)/MEU.API/Resources/ReleaseNotes/releasenotes.txt
$ release_note_folder=/var/www/release_note
$ if [ ! -d "$release_note_folder" ]; then # collapsed multi-line command
$ if [ -f "$release_note_folder/$project_name/releasenotes.txt" ] ; # collapsed multi-line command
$ sudo bash $cicd_path/build.sh
invalid argument ":" for "-t, --tag" flag: invalid reference format
See 'docker build --help'.
Removing login credentials for registry.gitlab.com
Must provide --username with --password-stdin
invalid reference format
Error response from daemon: invalid reference format
section_end:1620901743:step_script
ERROR: Job failed: exit status 1