Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
workspaces
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ssa
workspaces
Commits
f9732df4
Commit
f9732df4
authored
1 year ago
by
Charlotte Hausman
Browse files
Options
Downloads
Patches
Plain Diff
test package check
parent
e0ff2598
No related branches found
Branches containing commit
Tags
2.8.0
Tags containing commit
2 merge requests
!1605
Merge 2.8.2.3 work to main
,
!1492
tweak the pipeline
Pipeline
#12463
failed
1 year ago
Stage: pull-db
Stage: build-packages
Stage: push-packages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+1
-1
1 addition, 1 deletion
.gitlab-ci.yml
ci/package-build.template.yml
+11
-0
11 additions, 0 deletions
ci/package-build.template.yml
with
12 additions
and
1 deletion
.gitlab-ci.yml
+
1
−
1
View file @
f9732df4
...
...
@@ -24,7 +24,7 @@ variables:
POSTGRES_DB
:
archive
POSTGRES_USER
:
"
archive"
POSTGRES_PASSWORD
:
"
docker"
RELEASE_VERSION
:
2.8.2.1.
dev
1
RELEASE_VERSION
:
2.8.2.1.
rc
1
image
:
docker:19.03.12
...
...
This diff is collapsed.
Click to expand it.
ci/package-build.template.yml
+
11
−
0
View file @
f9732df4
...
...
@@ -2,6 +2,8 @@
.build-package
:
image
:
python:3.10
script
:
-
echo installing jq
-
apt-get install jq
# Enter the package directory
-
echo building package in $PACKAGE_PATH
-
export CAPO_PATH=$PWD
...
...
@@ -14,6 +16,15 @@
-
ln -s "$(which python3)" /home/ssa/bin/python3.10
-
export PATH=$PATH:/home/ssa/bin
# look to see if there is a conflicting version in pypi registry
-
PACKAGE_NAME='basename $PWD'
-
>-
RESPONSE=$(curl --header "PRIVATE-TOKEN: ${API_TOKEN}"
"https://gitlab.nrao.edu/api/v4/projects/$CI_PROJECT_ID/packages?package_type=pypi&package_name=$PACKAGE_NAME"
| jq '.[] | {"name": .name, "version": .version, "url":._links.delete_api_path}
| select(.version=="${RELEASE_VERSION}")')
-
echo $RESPONSE
# Install build, poetry and pytest
-
pip install poetry
-
poetry env use /home/ssa/bin/python3.10
...
...
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