Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sans-backend
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Analyze
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
sns-hfir-scse
sans
sans-backend
Commits
82ff46c2
Commit
82ff46c2
authored
2 years ago
by
Peterson, Peter
Browse files
Options
Downloads
Patches
Plain Diff
Change when conda packages are built
Former-commit-id:
73f6496b
parent
eda96bff
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+4
-4
4 additions, 4 deletions
.gitlab-ci.yml
scripts/exec_script_on_docker.sh
+0
-13
0 additions, 13 deletions
scripts/exec_script_on_docker.sh
scripts/publish_package.sh
+9
-4
9 additions, 4 deletions
scripts/publish_package.sh
with
13 additions
and
21 deletions
.gitlab-ci.yml
+
4
−
4
View file @
82ff46c2
...
...
@@ -246,7 +246,7 @@ create-wheel:
tags
:
-
rse-multi-builder
publish
-package
:
conda
-package
:
stage
:
publish
dependencies
:
-
create-wheel
...
...
@@ -254,11 +254,11 @@ publish-package:
before_script
:
-
sudo chmod +x scripts/exec_script_on_docker.sh
script
:
-
bash scripts/exec_script_on_docker.sh publish_package.sh
-
docker login --username=$CI_REGISTRY_USER --password=$CI_REGISTRY_PASSWORD $CI_REGISTRY
-
time docker pull $CONTAINER_URL
-
time docker run -v $PWD:/opt/sans-backend -t $CONTAINER_URL bash -c "bash /opt/sans-backend/scripts/publish-package.sh"
tags
:
-
rse-multi-builder
only
:
-
tags
deploy-dev
:
stage
:
analysis-update
...
...
This diff is collapsed.
Click to expand it.
scripts/exec_script_on_docker.sh
deleted
100644 → 0
+
0
−
13
View file @
eda96bff
#! /usr/bin/env bash
set
-e
SCRIPT
=
$1
sudo rm
-rf
/tmp/sans-backend
||
true
sudo mkdir
-p
/tmp/sans-backend
sudo cp
-r
.
/tmp/sans-backend
sudo chmod
777 /tmp/sans-backend
pushd
/tmp/sans-backend
docker login
--username
=
$CI_REGISTRY_USER
--password
=
$CI_REGISTRY_PASSWORD
$CI_REGISTRY
time
docker pull
$CONTAINER_URL
time
docker run
-v
/SNS:/SNS
-v
/HFIR:/HFIR
-v
$PWD
:/opt/sans-backend
-t
$CONTAINER_URL
bash
-c
"bash /opt/sans-backend/
${
SCRIPT
}
"
This diff is collapsed.
Click to expand it.
scripts/publish_package.sh
+
9
−
4
View file @
82ff46c2
...
...
@@ -9,7 +9,12 @@ conda build --output-folder . . -c neutrons -c mantid/label/nightly
# Verify
conda-verify ./linux-64/drtsans-
*
.tar.bz2
# Deploy to Anaconda
CONDA_LABEL
=
"main"
echo
pushing
$CI_COMMIT_REF_SLUG
with label
$CONDA_LABEL
anaconda upload
--label
$CONDA_LABEL
./linux-64/drtsans-
*
.tar.bz2
# Deploy tags to anaconda.org
if
[
-n
"
${
CI_COMMIT_TAG
}
"
]
;
then
CONDA_LABEL
=
"main"
if
[
"
${
CI_COMMIT_TAG
}
"
=
"*rc*"
]
;
then
CONDA_LABEL
=
"rc"
fi
echo
pushing
$CI_COMMIT_REF_SLUG
with label
$CONDA_LABEL
anaconda upload
--label
$CONDA_LABEL
./linux-64/drtsans-
*
.tar.bz2
fi
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