Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
m210
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
Container 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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Fabrice Schaub
m210
Commits
23273df5
Commit
23273df5
authored
1 week ago
by
Fabrice Schaub
Browse files
Options
Downloads
Patches
Plain Diff
removed comments
parent
73dc9507
No related branches found
Branches containing commit
Tags
latest
Tags containing commit
No related merge requests found
Pipeline
#7795
passed
1 week ago
Stage: build
Stage: push
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+3
-3
3 additions, 3 deletions
.gitlab-ci.yml
with
3 additions
and
3 deletions
.gitlab-ci.yml
+
3
−
3
View file @
23273df5
...
...
@@ -18,7 +18,7 @@ build:
-
docker build -t "$IMAGE_NAME:$CI_COMMIT_REF_NAME" ./hellom210-docker
artifacts
:
paths
:
-
./hellom210-docker
# Ensures built artifacts persist
-
./hellom210-docker
expire_in
:
1 hour
push
:
...
...
@@ -26,9 +26,9 @@ push:
script
:
-
echo "Pushing Docker image..."
-
docker push "$IMAGE_NAME:$CI_COMMIT_REF_NAME"
-
docker push "$IMAGE_NAME:latest"
# Push latest tag if needed
-
docker push "$IMAGE_NAME:latest"
rules
:
-
if
:
'
$CI_COMMIT_BRANCH
==
"master"'
-
if
:
'
$CI_COMMIT_TAG'
# Runs if a tag is created
-
if
:
'
$CI_COMMIT_TAG'
dependencies
:
-
build
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