Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.admin
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
bob
bob.admin
Commits
586f5dd9
Commit
586f5dd9
authored
7 years ago
by
André Anjos
Browse files
Options
Downloads
Patches
Plain Diff
Make conda package deployment re-usable
parent
1599a845
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
gitlab/deploy.sh
+1
-12
1 addition, 12 deletions
gitlab/deploy.sh
gitlab/functions.sh
+17
-0
17 additions, 0 deletions
gitlab/functions.sh
with
18 additions
and
12 deletions
gitlab/deploy.sh
+
1
−
12
View file @
586f5dd9
...
@@ -3,18 +3,7 @@
...
@@ -3,18 +3,7 @@
source
$(
dirname
${
0
}
)
/functions.sh
source
$(
dirname
${
0
}
)
/functions.sh
# Uploads all the built packages
deploy_conda_packages
for
os
in
"osx-64"
"noarch"
"linux-64"
;
do
for
f
in
${
CONDA_ROOT
}
/conda-bld/
${
os
}
/
*
.tar.bz2
;
do
if
[[
-f
$f
]]
;
then
if
[
-z
"
${
CI_COMMIT_TAG
}
"
]
;
then
#beta
dav_upload
"
${
f
}
"
"private-upload/conda/
${
os
}
/"
else
dav_upload
"
${
f
}
"
"public-upload/conda/label/main/
${
os
}
/"
fi
fi
done
done
# upload the docs from the sphinx folder (usually an artifact of Linux Python
# upload the docs from the sphinx folder (usually an artifact of Linux Python
# 3.6 builds)
# 3.6 builds)
...
...
This diff is collapsed.
Click to expand it.
gitlab/functions.sh
+
17
−
0
View file @
586f5dd9
...
@@ -333,6 +333,23 @@ install_miniconda() {
...
@@ -333,6 +333,23 @@ install_miniconda() {
}
}
# deployes all conda packages built up to now
deploy_conda_packages
()
{
# Uploads all the built packages
for
os
in
"osx-64"
"noarch"
"linux-64"
;
do
for
f
in
${
CONDA_ROOT
}
/conda-bld/
${
os
}
/
*
.tar.bz2
;
do
if
[[
-f
$f
]]
;
then
if
[
-z
"
${
CI_COMMIT_TAG
}
"
]
;
then
#beta
dav_upload
"
${
f
}
"
"private-upload/conda/
${
os
}
/"
else
dav_upload
"
${
f
}
"
"public-upload/conda/label/main/
${
os
}
/"
fi
fi
done
done
}
check_env PYTHON_VERSION
check_env PYTHON_VERSION
check_env CI_PROJECT_URL
check_env CI_PROJECT_URL
check_env CI_PROJECT_DIR
check_env CI_PROJECT_DIR
...
...
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