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
27dac746
Commit
27dac746
authored
6 years ago
by
André Anjos
Browse files
Options
Downloads
Patches
Plain Diff
Closes
#64
with a better fix
parent
e66ef428
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gitlab/functions.sh
+18
-14
18 additions, 14 deletions
gitlab/functions.sh
with
18 additions
and
14 deletions
gitlab/functions.sh
+
18
−
14
View file @
27dac746
...
...
@@ -356,23 +356,27 @@ install_miniconda() {
# given the current visibility/tagging conditions of the package.
set_conda_channels
()
{
CONDA_CHANNELS
=()
#resets bash array
if
[
-z
"
${
2
}
"
]
;
then
# there are no tags on this build - add beta channels
if
[
"
${
1
}
"
==
"private"
]
;
then
# adds private beta builds (only if the package is also private)
if
[
"
${
1
}
"
==
"public"
]
;
then
if
[
-z
"
${
2
}
"
]
;
then
#public beta build
CONDA_CHANNELS+
=(
'public/conda/label/beta'
)
CONDA_CHANNELS+
=(
'public/conda'
)
else
#public staging (tagged) build
CONDA_CHANNELS+
=(
'public/conda/label/staging'
)
CONDA_CHANNELS+
=(
'public/conda'
)
fi
else
if
[
-z
"
${
2
}
"
]
;
then
#private beta build
CONDA_CHANNELS+
=(
'private/conda/label/beta'
)
CONDA_CHANNELS+
=(
'public/conda/label/beta'
)
CONDA_CHANNELS+
=(
'private/conda'
)
CONDA_CHANNELS+
=(
'public/conda'
)
else
#private staging (tagged) build
CONDA_CHANNELS+
=(
'private/conda/label/staging'
)
CONDA_CHANNELS+
=(
'public/conda/label/staging'
)
CONDA_CHANNELS+
=(
'private/conda'
)
CONDA_CHANNELS+
=(
'public/conda'
)
fi
# adds public stable builds (always)
CONDA_CHANNELS+
=(
'public/conda/label/beta'
)
fi
if
[
"
${
1
}
"
==
"private"
]
;
then
# adds private stable builds (only if the package is also private)
CONDA_CHANNELS+
=(
'private/conda/label/stable'
)
CONDA_CHANNELS+
=(
'private/conda'
)
fi
# adds public stable builds (always)
CONDA_CHANNELS+
=(
'public/conda/label/stable'
)
CONDA_CHANNELS+
=(
'public/conda'
)
check_array_env CONDA_CHANNELS
}
...
...
This diff is collapsed.
Click to expand it.
André Anjos
@aanjos
·
6 years ago
Author
Owner
Actually, this fixes #69 - not
#64 (closed)
.
Actually, this fixes #69 - not #64.
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