Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Mikhail Bulynin
Wallex
Commits
6e6a7ca3
Commit
6e6a7ca3
authored
1 year ago
by
Mikhail Bulynin
Browse files
Options
Download
Email Patches
Plain Diff
Update .gitlab-ci.yml file
parent
6239b39b
main
backend-boba
wallexapp
1 merge request
!7
merge backend
Pipeline
#1189
canceled with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+4
-11
.gitlab-ci.yml
with
4 additions
and
11 deletions
+4
-11
.gitlab-ci.yml
+
4
-
11
View file @
6e6a7ca3
...
...
@@ -16,18 +16,11 @@ docker-build:
-
docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
script
:
-
|
if [[ "$CI_COMMIT_BRANCH" == "$CI_DEFAULT_BRANCH" ]]; then
tag=""
echo "Running on default branch '$CI_DEFAULT_BRANCH': tag = 'latest'"
else
tag=":$CI_COMMIT_REF_SLUG"
echo "Running on branch '$CI_COMMIT_BRANCH': tag = $tag"
fi
-
docker build --pull -t "$CI_REGISTRY_IMAGE${tag}" .
-
docker push "$CI_REGISTRY_IMAGE${tag}"
-
docker build --pull -t "wallex-back${CI_COMMIT_SHORT_SHA}" ./backend
-
docker push "wallex-back${CI_COMMIT_SHORT_SHA}"
rules
:
-
if
:
$CI_COMMIT_BRANCH
exists
:
-
wallexapp
/Dockerfile
-
backend
/Dockerfile
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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
Menu
Explore
Projects
Groups
Snippets