Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
sns-hfir-scse
sans
sans-backend
Commits
73f6496b
Commit
73f6496b
authored
Sep 08, 2022
by
Peterson, Peter
Browse files
Change when conda packages are built
parent
25e1b8d9
Pipeline
#278361
failed with stages
in 51 minutes and 1 second
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
73f6496b
...
...
@@ -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
...
...
scripts/exec_script_on_docker.sh
deleted
100644 → 0
View file @
25e1b8d9
#! /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
}
"
scripts/publish_package.sh
View file @
73f6496b
...
...
@@ -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
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment