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
Show more breadcrumbs
Omo Oaiya
Kotahi
Commits
1b0fc16d
Commit
1b0fc16d
authored
4 years ago
by
Ion Riciu
Browse files
Options
Downloads
Plain Diff
Merge branch 'main' of
https://gitlab.coko.foundation/kotahi/kotahi
parents
7e882aa6
446a0ebe
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.elife.yml
+24
-9
24 additions, 9 deletions
.gitlab-ci.elife.yml
app/storage/forms/submit.json
+7
-2
7 additions, 2 deletions
app/storage/forms/submit.json
config/default.js
+0
-19
0 additions, 19 deletions
config/default.js
with
31 additions
and
30 deletions
.gitlab-ci.elife.yml
+
24
−
9
View file @
1b0fc16d
...
...
@@ -18,15 +18,28 @@ build:
before_script
:
-
cp app/brand-instances-configs/elife.json app/brandConfig.json
script
:
-
if [ -z "$DOCKERHUB_USERNAME_ELIFE" ] || [ -z "$DOCKERHUB_PASSWORD_ELIFE" ]; then echo "Not pushing" && exit 0; fi
-
docker login -u $DOCKERHUB_USERNAME_ELIFE -p $DOCKERHUB_PASSWORD_ELIFE
-
docker pull $IMAGE_ORG/$IMAGE_NAME:latest ||
true
-
docker build --build-arg instance_name=elife --file ./Dockerfile-production --cache-from $CI_REGISTRY_IMAGE:latest --tag $IMAGE_ORG/$IMAGE_NAME:$CI_COMMIT_SHA --tag $IMAGE_ORG/$IMAGE_NAME:latest .
-
docker build --file ./Dockerfile-ci --cache-from $IMAGE_ORG/$IMAGE_NAME-dev:latest --tag $IMAGE_ORG/$IMAGE_NAME-dev:$CI_COMMIT_SHA --tag $IMAGE_ORG/$IMAGE_NAME-dev:latest .
-
docker push $IMAGE_ORG/$IMAGE_NAME:$CI_COMMIT_SHA
-
docker push $IMAGE_ORG/$IMAGE_NAME:latest
-
docker push $IMAGE_ORG/$IMAGE_NAME-dev:$CI_COMMIT_SHA
-
docker push $IMAGE_ORG/$IMAGE_NAME-dev:latest
-
|
if [ -z "$DOCKERHUB_USERNAME_ELIFE" ] || [ -z "$DOCKERHUB_PASSWORD_ELIFE" ]; then echo "Not pushing" && exit 0; fi
docker login -u $DOCKERHUB_USERNAME_ELIFE -p $DOCKERHUB_PASSWORD_ELIFE
docker pull $IMAGE_ORG/$IMAGE_NAME:latest || true
docker build \
--build-arg instance_name=elife \
--build-arg node_env=production \
--build-arg server_protocol= \
--build-arg server_host=localhost \
--build-arg server_port=3000 \
--build-arg client_protocol=http \
--build-arg client_host=0.0.0.0 \
--build-arg client_port=4000 \
--file ./Dockerfile-production \
--cache-from $CI_REGISTRY_IMAGE:latest \
--tag $IMAGE_ORG/$IMAGE_NAME:$CI_COMMIT_SHA \
--tag $IMAGE_ORG/$IMAGE_NAME:latest .
docker build --file ./Dockerfile-ci --cache-from $IMAGE_ORG/$IMAGE_NAME-dev:latest --tag $IMAGE_ORG/$IMAGE_NAME-dev:$CI_COMMIT_SHA --tag $IMAGE_ORG/$IMAGE_NAME-dev:latest .
docker push $IMAGE_ORG/$IMAGE_NAME:$CI_COMMIT_SHA
docker push $IMAGE_ORG/$IMAGE_NAME:latest
docker push $IMAGE_ORG/$IMAGE_NAME-dev:$CI_COMMIT_SHA
docker push $IMAGE_ORG/$IMAGE_NAME-dev:latest
deploy
:
stage
:
deploy
...
...
@@ -75,6 +88,7 @@ test-chrome:
PGPASSWORD
:
kotahidev
# this is used to ignore self signed certs
START_SERVER_AND_TEST_INSECURE
:
1
INSTANCE_NAME
:
elife
services
:
-
postgres
script
:
...
...
@@ -100,6 +114,7 @@ test-firefox:
PGUSER
:
kotahidev
PGPASSWORD
:
kotahidev
START_SERVER_AND_TEST_INSECURE
:
1
INSTANCE_NAME
:
elife
services
:
-
postgres
script
:
...
...
This diff is collapsed.
Click to expand it.
app/storage/forms/submit.json
+
7
−
2
View file @
1b0fc16d
...
...
@@ -8,7 +8,7 @@
"id"
:
"1616424088561"
,
"component"
:
"TextField"
,
"name"
:
"submission.articleId"
,
"description"
:
"
<p>undefined</p>
"
,
"description"
:
""
,
"validate"
:
[
{
"value"
:
"required"
,
...
...
@@ -74,7 +74,12 @@
"id"
:
"1616424092971"
,
"component"
:
"Select"
,
"name"
:
"submission.evalType"
,
"validate"
:
[]
"validate"
:
[
{
"value"
:
"required"
,
"label"
:
"Required"
}
]
},
{
"options"
:
[],
...
...
This diff is collapsed.
Click to expand it.
config/default.js
+
0
−
19
View file @
1b0fc16d
/* eslint-disable */
const
path
=
require
(
'
path
'
)
const
logger
=
require
(
'
winston
'
)
const
{
deferConfig
}
=
require
(
'
config/defer
'
)
...
...
@@ -7,13 +6,6 @@ const components = require('./components.json')
const
formComponents
=
require
(
'
./form-components.json
'
)
const
journal
=
require
(
'
./journal
'
)
console
.
log
(
'
logging in config default
'
)
console
.
log
(
'
process.env
'
)
console
.
log
(
process
.
env
)
console
.
log
(
'
process.env.INSTANCE_NAME
'
)
console
.
log
(
process
.
env
.
INSTANCE_NAME
)
console
.
log
(
'
typeof instance name
'
)
console
.
log
(
typeof
process
.
env
.
INSTANCE_NAME
)
module
.
exports
=
{
teams
:
{
seniorEditor
:
{
...
...
@@ -51,20 +43,9 @@ module.exports = {
coko
:
'
../app/storage/forms-coko
'
,
}
console
.
log
(
'
pubsweet-component-xpub-formbuilder
'
)
console
.
log
(
'
process.env
'
)
console
.
log
(
process
.
env
)
console
.
log
(
'
process.env.INSTANCE_NAME
'
)
console
.
log
(
process
.
env
.
INSTANCE_NAME
)
console
.
log
(
'
typeof instance name
'
)
console
.
log
(
typeof
process
.
env
.
INSTANCE_NAME
)
const
pathToFormTemplateFolder
=
formTemplatePath
[
String
(
process
.
env
.
INSTANCE_NAME
)]
console
.
log
(
'
pathToFormTemplateFolder
'
)
console
.
log
(
pathToFormTemplateFolder
)
return
path
.
resolve
(
__dirname
,
pathToFormTemplateFolder
)
}),
components
:
formComponents
,
...
...
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