Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
chinguyen_nodejs_managestudents
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chinguyen
chinguyen_nodejs_managestudents
Commits
07e3c472
Commit
07e3c472
authored
Feb 16, 2022
by
dangdoan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[dev]
parent
4ba24c3e
Pipeline
#13015
failed with stages
in 13 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
.gitlab-ci.yml
.gitlab-ci.yml
+1
-0
build.sh
cicd/build.sh
+3
-0
No files found.
.gitlab-ci.yml
View file @
07e3c472
...
@@ -13,6 +13,7 @@ build:
...
@@ -13,6 +13,7 @@ build:
-
echo "To release new docker image for development and staging, we use tag 'dev' only !!!"
-
echo "To release new docker image for development and staging, we use tag 'dev' only !!!"
-
export tag=dev
-
export tag=dev
-
cicd_path=$(pwd)/cicd
-
cicd_path=$(pwd)/cicd
script
:
script
:
-
bash $cicd_path/build.sh
-
bash $cicd_path/build.sh
only
:
only
:
...
...
cicd/build.sh
View file @
07e3c472
...
@@ -2,5 +2,8 @@
...
@@ -2,5 +2,8 @@
echo
$image_name
:
$tag
echo
$image_name
:
$tag
sudo
docker build
-t
$image_name
:
$tag
-f
Dockerfile
.
sudo
docker build
-t
$image_name
:
$tag
-f
Dockerfile
.
sudo
docker
logout
registry.gitlab.com
sudo
docker
logout
registry.gitlab.com
echo
"Login to gitlab registry"
echo
"
$CI_REGISTRY_PW
"
echo
"
$CI_REGISTRY_USER
"
echo
"
$CI_REGISTRY_PW
"
|
sudo
docker login registry.gitlab.com
-u
"
$CI_REGISTRY_USER
"
--password-stdin
echo
"
$CI_REGISTRY_PW
"
|
sudo
docker login registry.gitlab.com
-u
"
$CI_REGISTRY_USER
"
--password-stdin
sudo
docker push
$image_name
:
$tag
sudo
docker push
$image_name
:
$tag
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment