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
eb636671
Commit
eb636671
authored
8 years ago
by
André Anjos
Browse files
Options
Downloads
Patches
Plain Diff
Fix deployment
parent
fa7294b0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
gitlab/deploy.sh
+1
-1
1 addition, 1 deletion
gitlab/deploy.sh
gitlab/functions.sh
+7
-7
7 additions, 7 deletions
gitlab/functions.sh
with
8 additions
and
8 deletions
gitlab/deploy.sh
+
1
−
1
View file @
eb636671
...
...
@@ -10,7 +10,7 @@ setup check sdist --formats zip upload --repository staging
# if that worked, uploads documentation to pythonhosted if any exists
if
[
-d
sphinx
]
;
then
log_info
"Uploading documentation to pythonhosted on behalf of
${
PYPIUSER
}
..."
setup upload_docs
--upload-dir
sphinx
setup upload_docs
--upload-dir
sphinx
--repository
production
fi
# if that worked, uploads source package to the production index
...
...
This diff is collapsed.
Click to expand it.
gitlab/functions.sh
+
7
−
7
View file @
eb636671
...
...
@@ -67,9 +67,12 @@ setup() {
# Prepares ~/.pypirc
dot_pypirc
()
{
check_env PYPISERVER
log_info
"Creating ~/.pypirc..."
cat
<<
EOT
>> ~/.pypirc
local
rc
=
${
HOME
}
/.pypirc
log_info
"Creating
${
rc
}
..."
if
[
-e
${
rc
}
]
;
then
run_cmd
rm
-f
${
rc
}
fi
cat
<<
EOT
>>
${
rc
}
[distutils]
index-servers =
production
...
...
@@ -85,15 +88,12 @@ repository: ${TESTSERVER}
username:
${
PYPIUSER
}
password:
${
PYPIPASS
}
EOT
run_cmd
chmod
600
~/.pypi
rc
run_cmd
chmod
600
${
rc
}
}
# Uploads a file to our intranet location via curl
doc_upload
()
{
check_env DOCSERVER
check_pass DOCUSER
check_pass DOCPASS
log_info
"curl:
${
1
}
->
${
DOCSERVER
}
/
${
2
}
..."
curl
--location
--silent
--show-error
--user
"
${
DOCUSER
}
:
${
DOCPASS
}
"
--upload-file
${
1
}
${
DOCSERVER
}
/
${
2
}
local
status
=
$?
...
...
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