Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
steam-runtime-tools
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
Package Registry
Model registry
Operate
Environments
Terraform modules
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
Show more breadcrumbs
steamrt
steam-runtime-tools
Commits
5e87c742
Commit
5e87c742
authored
5 years ago
by
Simon McVittie
Browse files
Options
Downloads
Patches
Plain Diff
ci: Copy in a new sources.list if given
Signed-off-by:
Simon McVittie
<
smcv@collabora.com
>
parent
e608ee34
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ci/Dockerfile.in
+1
-0
1 addition, 0 deletions
ci/Dockerfile.in
ci/Jenkinsfile
+5
-0
5 additions, 0 deletions
ci/Jenkinsfile
with
6 additions
and
0 deletions
ci/Dockerfile.in
+
1
−
0
View file @
5e87c742
FROM
@BASE_IMAGE@
COPY
sources.list /etc/apt/sources.list.d/pressure-vessel.list
RUN
apt-get update
# vim:set sw=4 sts=4 et ft=dockerfile:
This diff is collapsed.
Click to expand it.
ci/Jenkinsfile
+
5
−
0
View file @
5e87c742
...
...
@@ -68,6 +68,11 @@ pipeline {
sh
"""
sed -e 's!@BASE_IMAGE@!${env.CI_DOCKER_REGISTRY}/${env.CI_DOCKER_IMAGE}!g' < src/ci/Dockerfile.in > src/ci/Dockerfile
if [ -n "${env.CI_APT_SOURCES_FILE}" ]; then
cp "${env.CI_APT_SOURCES_FILE}" src/ci/sources.list
else
touch src/ci/sources.list
fi
"""
docker
.
withRegistry
(
"https://${env.CI_DOCKER_REGISTRY}"
,
dockerRegistryCred
)
{
...
...
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