Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Николай Осинцев
DevOps2022OsintsevNikolay
Commits
1bb8ed8b
Commit
1bb8ed8b
authored
2 years ago
by
Николай Осинцев
Browse files
Options
Download
Patches
Plain Diff
dev: gitlab-ci.yml: build&push via Docker-in-Docker
parent
7f33cb41
develop
No related merge requests found
Pipeline
#73507
failed with stages
in 1 minute and 58 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+8
-4
.gitlab-ci.yml
with
8 additions
and
4 deletions
+8
-4
.gitlab-ci.yml
+
8
−
4
View file @
1bb8ed8b
...
@@ -13,11 +13,13 @@ workflow:
...
@@ -13,11 +13,13 @@ workflow:
PUSH_TAG
:
"
dev"
PUSH_TAG
:
"
dev"
-
when
:
always
-
when
:
always
variables
:
DOCKER_TLS_CERTDIR
:
"
/certs"
build-application
:
build-application
:
stage
:
build
stage
:
build
tags
:
tags
:
-
shell
-
docker
-
my
-
my
script
:
script
:
-
echo "Building... This will take about 10 seconds."
-
echo "Building... This will take about 10 seconds."
...
@@ -27,7 +29,7 @@ build-application:
...
@@ -27,7 +29,7 @@ build-application:
lint-testing
:
lint-testing
:
stage
:
testing
stage
:
testing
tags
:
tags
:
-
shell
-
docker
-
my
-
my
script
:
script
:
-
echo "Running lint tests... This will take about 10 seconds."
-
echo "Running lint tests... This will take about 10 seconds."
...
@@ -43,7 +45,7 @@ unit-testing:
...
@@ -43,7 +45,7 @@ unit-testing:
needs
:
needs
:
-
lint-testing
-
lint-testing
tags
:
tags
:
-
shell
-
docker
-
my
-
my
script
:
script
:
-
echo "Current branch is $CI_COMMIT_BRANCH"
-
echo "Current branch is $CI_COMMIT_BRANCH"
...
@@ -53,12 +55,14 @@ unit-testing:
...
@@ -53,12 +55,14 @@ unit-testing:
-
echo "Unit tests passed."
-
echo "Unit tests passed."
build-image-job
:
build-image-job
:
services
:
-
docker:20.10.16-dind
stage
:
packaging
stage
:
packaging
only
:
only
:
-
master
-
master
-
develop
-
develop
tags
:
tags
:
-
shell
-
dind
-
my
-
my
script
:
script
:
-
echo "Current branch is $CI_COMMIT_BRANCH"
-
echo "Current branch is $CI_COMMIT_BRANCH"
...
...
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!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets