Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Flask_App
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LAMRINI Houda
Flask_App
Commits
b6b2a8f7
Commit
b6b2a8f7
authored
5 months ago
by
LAMRINI Houda
Browse files
Options
Downloads
Patches
Plain Diff
Update .gitlab-ci.yml file
parent
5298eaf5
No related branches found
No related tags found
No related merge requests found
Pipeline
#47255
failed
5 months ago
Stage: build
Stage: deploy
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+7
-4
7 additions, 4 deletions
.gitlab-ci.yml
with
7 additions
and
4 deletions
.gitlab-ci.yml
+
7
−
4
View file @
b6b2a8f7
image
:
ubuntu:latest
services
:
-
name
:
docker:20.10.5-dind
alias
:
docker
...
...
@@ -15,6 +17,7 @@ stages:
-
deploy
before_script
:
-
apt-get update && apt-get install -y docker.io
-
echo "Logging into GitLab Container Registry..."
-
docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" "$CI_REGISTRY"
-
echo "Checking Docker availability..."
...
...
@@ -24,11 +27,11 @@ build-push-image:
stage
:
build
script
:
-
echo "Building the Docker image..."
-
docker version
# Vérifie la version de Docker
-
docker info
# Affiche des informations supplémentaires sur l'environnement Docker
-
docker build -t "$CI_REGISTRY_IMAGE:latest" .
|| (echo "Docker build failed" && exit 1)
-
docker version
-
docker info
-
docker build -t "$CI_REGISTRY_IMAGE:latest" .
-
echo "Pushing the Docker image to the registry..."
-
docker push "$CI_REGISTRY_IMAGE:latest"
|| (echo "Docker push failed" && exit 1)
-
docker push "$CI_REGISTRY_IMAGE:latest"
deploy
:
stage
:
deploy
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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