Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Dockerfiles
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Picasoft
Technique
Dockerfiles
Commits
076e23ba
Verified
Commit
076e23ba
authored
5 years ago
by
Igor Witz
Browse files
Options
Downloads
Patches
Plain Diff
fix: detect the right image name when there are many
parent
3ae4f908
No related branches found
Branches containing commit
No related tags found
1 merge request
!36
fix: detect the right image name when there are many
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
get-modified-image.sh
+2
-2
2 additions, 2 deletions
get-modified-image.sh
with
2 additions
and
2 deletions
get-modified-image.sh
+
2
−
2
View file @
076e23ba
#!/bin/sh
# retrieve the name of the image that was modified in the latest commit
# retrieve the name
and the version
of the image that was modified in the latest commit
# this script should become obsolete as soon as a proper way of getting the modified files is added to Gitlab CI
RES
=
""
...
...
@@ -17,7 +17,7 @@ then
exit
1
fi
RES
=
$(
cat
$RES
/docker-compose.yml |
grep
image: |
head
-n1
|
cut
-d
':'
-f2-
)
RES
=
$(
cat
$RES
/docker-compose.yml |
grep
$RES
|
cut
-d
':'
-f2-
)
if
[[
"
$RES
"
==
""
]]
then
echo
"No image modified"
...
...
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