Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lexp_www
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
lexworkers
lexp_www
Commits
fbac1c95
Commit
fbac1c95
authored
1 month ago
by
Bartosz Walkowiak
Browse files
Options
Downloads
Patches
Plain Diff
Update .gitlab-ci.yml
parent
40ba813c
1 merge request
!3
Update httpd.conf prevent dir browsing
Pipeline
#21723
passed with stage
Stage:
in 53 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+6
-3
6 additions, 3 deletions
.gitlab-ci.yml
with
6 additions
and
3 deletions
.gitlab-ci.yml
+
6
−
3
View file @
fbac1c95
image
:
docker:
18.09.7
image
:
docker:
23.0.3
stages
:
stages
:
-
build
-
build
...
@@ -6,11 +6,14 @@ stages:
...
@@ -6,11 +6,14 @@ stages:
build_image
:
build_image
:
stage
:
build
stage
:
build
image
:
docker:23.0.3
services
:
services
:
-
docker:18.09.7-dind
-
'
docker:23.0.3-dind'
before_script
:
-
until docker info; do sleep 1; done
script
:
script
:
-
if [ "$CI_COMMIT_REF_NAME" == "master" ]; then TAG="latest"; else TAG="develop"; fi
-
if [ "$CI_COMMIT_REF_NAME" == "master" ]; then TAG="latest"; else TAG="develop"; fi
-
docker build -t $CI_REGISTRY_IMAGE:$TAG .
-
docker build -t $CI_REGISTRY_IMAGE:$TAG
-o type=docker
.
-
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
-
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
-
docker push $CI_REGISTRY_IMAGE:$TAG
-
docker push $CI_REGISTRY_IMAGE:$TAG
...
...
This diff is collapsed.
Click to expand it.
Preview
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