Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Kotahi
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
"git@gitlab.coko.foundation:cokoapps/server.git" did not exist on "f9223c9006688199fffa3ed40d8894339a381d1d"
Show more breadcrumbs
Omo Oaiya
Kotahi
Commits
11c5ec2c
Commit
11c5ec2c
authored
3 years ago
by
Yannis Barlas
Browse files
Options
Downloads
Plain Diff
Merge branch 'main' of gitlab.coko.foundation:kotahi/kotahi into main
parents
020e9953
bbd899c4
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.elife.k8s.yml
+12
-9
12 additions, 9 deletions
.gitlab-ci.elife.k8s.yml
server/model-manuscript/src/graphql.js
+9
-2
9 additions, 2 deletions
server/model-manuscript/src/graphql.js
with
21 additions
and
11 deletions
.gitlab-ci.elife.k8s.yml
+
12
−
9
View file @
11c5ec2c
...
...
@@ -37,26 +37,29 @@ stages:
deploy
:
stage
:
deploy
#
image: jshimko/kube-tools-aws:latest
image
:
ubuntu:18.04
image
:
jshimko/kube-tools-aws:latest
#
image: ubuntu:18.04
variables
:
AWS_ACCESS_KEY_ID
:
$ELIFE_AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY
:
$ELIFE_AWS_SECRET_ACCESS_KEY
AWS_DEFAULT_REGION
:
$ELIFE_AWS_DEFAULT_REGION
ELIFE_CLUSTER_NAME
:
eks-elife-kotahi
TZ
:
Europe/Rome
# before_script:
# - touch ~/.elife_k8s_config
# - echo "${ELIFE_K8S_CLUSTER_CONFIG}" >> ~/.elife_k8s_config
script
:
-
|
apt update
apt install awscli curl wget -y
curl -LO https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/linux/amd64/kubectl
chmod +x ./kubectl && sudo mv ./kubectl /usr/local/bin/kubectl
aws --version
kubectl version
#ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
#apt update
#apt install awscli curl wget -y
#curl -LO https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/linux/amd64/kubectl
#chmod +x ./kubectl
#mv ./kubectl /usr/local/bin/kubectl
#aws --version
kubectl config --kubeconfig=$ELIFE_CLUSTER_NAME set-cluster $ELIFE_CLUSTER_NAME --server=${ELIFE_K8S_CLUSTER_HOST} --certificate-authority=${ELIFE_K8S_CLUSTER_CA_CERTIFICATE}
#aws --region=$AWS_DEFAULT_REGION eks update-kubeconfig --name $ELIFE_CLUSTER_NAME
#
kubectl cluster-info
kubectl cluster-info
# helm repo add kotahi https://charts.bitnami.com/bitnami
# helm dependency build helm/elife-kotahi
# helm upgrade -i elife-kotahi \
...
...
This diff is collapsed.
Click to expand it.
server/model-manuscript/src/graphql.js
+
9
−
2
View file @
11c5ec2c
...
...
@@ -62,6 +62,10 @@ const commonUpdateManuscript = async (_, { id, input }, ctx) => {
...
manuscript
.
submission
,
...
manuscriptDelta
.
submission
,
},
meta
:
{
...
manuscript
.
meta
,
...
manuscriptDelta
.
meta
,
},
}
// if (manuscript.status === 'revise') {
...
...
@@ -274,10 +278,13 @@ const resolvers = {
let
manuscript
=
await
ctx
.
models
.
Manuscript
.
query
().
findById
(
id
)
if
([
'
elife
'
].
includes
(
process
.
env
.
INSTANCE_NAME
))
{
const
turndownService
=
new
TurndownService
({
bulletListMarker
:
'
-
'
})
const
turndownService
=
new
TurndownService
({
bulletListMarker
:
'
-
'
})
const
requestBody
=
{
uri
:
manuscript
.
submission
.
articleURL
,
text
:
turndownService
.
turndown
(
manuscript
.
submission
.
evaluationContent
),
text
:
turndownService
.
turndown
(
manuscript
.
submission
.
evaluationContent
,
),
tags
:
[
manuscript
.
submission
.
evalType
],
// group: "q5X6RWJ6",
}
...
...
This diff is collapsed.
Click to expand it.
Preview
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!
Save comment
Cancel
Please
register
or
sign in
to comment