Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CI Images
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
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
Service Desk
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
Show more breadcrumbs
docker
CI Images
Commits
1e4f0afa
Commit
1e4f0afa
authored
3 weeks ago
by
Simon Praetorius
Browse files
Options
Downloads
Patches
Plain Diff
add more output
parent
72717b06
No related branches found
No related tags found
1 merge request
!160
Draft: Fix the automatic build
Pipeline
#77786
failed
3 weeks ago
Stage: base
Stage: finalize
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/duneci-process-images
+11
-0
11 additions, 0 deletions
bin/duneci-process-images
with
11 additions
and
0 deletions
bin/duneci-process-images
+
11
−
0
View file @
1e4f0afa
...
...
@@ -17,15 +17,26 @@ get_bearer_token() {
}
get_manifest
()
{
echo
">>>>>> get_bearer_token ... "
get_bearer_token
$1
echo
">>>>>> get_bearer_token ... [ ok ]"
echo
">>>>>> curl -s -D manifest_headers ..."
manifest_data
=
$(
curl
-s
-D
manifest_headers
-H
"Accept: application/vnd.docker.distribution.manifest.v2+json"
-H
"Authorization: Bearer
${
token
}
"
"https://
${
CI_REGISTRY
}
/v2/
$1
/manifests/
$2
"
)
echo
">>>>>> curl -s -D manifest_headers ... [ ok ]"
if
[[
$?
-ne
0
]]
;
then
echo
" ERROR: Could not get manifest for '
$1
:
$2
'"
return
1
fi
echo
">>>>>> grep -i ..."
manifest_digest
=
$(
grep
-i
"^Docker-Content-Digest:"
< manifest_headers |
cut
-d
" "
-f
2
)
echo
">>>>>> grep -i ... [ ok ]"
echo
">>>>>> manifest_digest ..."
manifest_digest
=
${
manifest_digest
%
$'
\r
'
}
echo
">>>>>> manifest_digest ... [ ok ]"
rm
-f
manifest_headers
}
...
...
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