Skip to content
Snippets Groups Projects
Commit 78bc1877 authored by Tamlyn Rhodes's avatar Tamlyn Rhodes
Browse files

Merge branch 'update-ci' into 'master'

Update ci

See merge request xpub!87
parents f260419b 216637c7
No related branches found
No related tags found
No related merge requests found
variables: variables:
IMAGE_ORG: xpub
IMAGE_NAME: xpub IMAGE_NAME: xpub
BASE_DOMAIN: gateway.xpub.semioticsquares.com BASE_DOMAIN: gateway.xpub.semioticsquares.com
CONFIGURATION_REPOSITORY: https://gitlab.coko.foundation/pubsweet/infra.git CONFIGURATION_REPOSITORY: https://gitlab.coko.foundation/xpub/deployment-config.git
stages: stages:
- build - build
...@@ -18,11 +19,11 @@ build: ...@@ -18,11 +19,11 @@ build:
- docker version - docker version
- docker login -u $DOCKERHUB_USERNAME -p $DOCKERHUB_PASSWORD - docker login -u $DOCKERHUB_USERNAME -p $DOCKERHUB_PASSWORD
- echo "Ignore warning! Cannot perform an interactive login from a non TTY device" - echo "Ignore warning! Cannot perform an interactive login from a non TTY device"
- docker build -t $DOCKERHUB_USERNAME/$IMAGE_NAME:$CI_COMMIT_SHA . - docker build -t $IMAGE_ORG/$IMAGE_NAME:$CI_COMMIT_SHA .
- docker push $DOCKERHUB_USERNAME/$IMAGE_NAME:$CI_COMMIT_SHA - docker push $IMAGE_ORG/$IMAGE_NAME:$CI_COMMIT_SHA
lint: lint:
image: $DOCKERHUB_USERNAME/$IMAGE_NAME:$CI_COMMIT_SHA image: $IMAGE_ORG/$IMAGE_NAME:$CI_COMMIT_SHA
stage: test stage: test
variables: variables:
GIT_STRATEGY: none GIT_STRATEGY: none
...@@ -31,7 +32,7 @@ lint: ...@@ -31,7 +32,7 @@ lint:
- npm run lint - npm run lint
test: test:
image: $DOCKERHUB_USERNAME/$IMAGE_NAME:$CI_COMMIT_SHA image: $IMAGE_ORG/$IMAGE_NAME:$CI_COMMIT_SHA
stage: test stage: test
variables: variables:
GIT_STRATEGY: none GIT_STRATEGY: none
...@@ -44,7 +45,7 @@ test: ...@@ -44,7 +45,7 @@ test:
# ----------------------------------------------- # -----------------------------------------------
review:xpub-collabra: review:xpub-collabra:
image: xpub/deployer:latest image: pubsweet/deployer:latest
stage: review stage: review
variables: variables:
PACKAGE_NAME: xpub-collabra PACKAGE_NAME: xpub-collabra
...@@ -61,7 +62,7 @@ review:xpub-collabra: ...@@ -61,7 +62,7 @@ review:xpub-collabra:
- create_deployment - create_deployment
stop_review:xpub-collabra: stop_review:xpub-collabra:
image: xpub/deployer:latest image: pubsweet/deployer:latest
stage: review stage: review
variables: variables:
PACKAGE_NAME: xpub-collabra PACKAGE_NAME: xpub-collabra
...@@ -78,7 +79,7 @@ stop_review:xpub-collabra: ...@@ -78,7 +79,7 @@ stop_review:xpub-collabra:
staging:xpub-collabra: staging:xpub-collabra:
image: xpub/deployer:latest image: pubsweet/deployer:latest
stage: staging stage: staging
variables: variables:
PACKAGE_NAME: xpub-collabra PACKAGE_NAME: xpub-collabra
...@@ -92,7 +93,7 @@ staging:xpub-collabra: ...@@ -92,7 +93,7 @@ staging:xpub-collabra:
- create_deployment - create_deployment
production:xpub-collabra: production:xpub-collabra:
image: xpub/deployer:latest image: pubsweet/deployer:latest
stage: production stage: production
variables: variables:
PACKAGE_NAME: xpub-collabra PACKAGE_NAME: xpub-collabra
...@@ -107,7 +108,7 @@ production:xpub-collabra: ...@@ -107,7 +108,7 @@ production:xpub-collabra:
- create_deployment - create_deployment
demo:xpub-collabra: demo:xpub-collabra:
image: xpub/deployer:latest image: pubsweet/deployer:latest
stage: demo stage: demo
variables: variables:
PACKAGE_NAME: xpub-collabra PACKAGE_NAME: xpub-collabra
...@@ -124,7 +125,7 @@ demo:xpub-collabra: ...@@ -124,7 +125,7 @@ demo:xpub-collabra:
# ----------------------------------------------- # -----------------------------------------------
#review:xpub-ui: #review:xpub-ui:
# image: xpub/deployer:latest # image: pubsweet/deployer:latest
# stage: review # stage: review
# variables: # variables:
# PACKAGE_NAME: xpub-ui # PACKAGE_NAME: xpub-ui
...@@ -140,7 +141,7 @@ demo:xpub-collabra: ...@@ -140,7 +141,7 @@ demo:xpub-collabra:
# - create_deployment # - create_deployment
# #
#stop_review:xpub-ui: #stop_review:xpub-ui:
# image: xpub/deployer:latest # image: pubsweet/deployer:latest
# stage: review # stage: review
# variables: # variables:
# PACKAGE_NAME: xpub-ui # PACKAGE_NAME: xpub-ui
...@@ -154,7 +155,7 @@ demo:xpub-collabra: ...@@ -154,7 +155,7 @@ demo:xpub-collabra:
# - delete_deployment # - delete_deployment
# #
#staging:xpub-ui: #staging:xpub-ui:
# image: xpub/deployer:latest # image: pubsweet/deployer:latest
# stage: staging # stage: staging
# variables: # variables:
# PACKAGE_NAME: xpub-ui # PACKAGE_NAME: xpub-ui
...@@ -168,7 +169,7 @@ demo:xpub-collabra: ...@@ -168,7 +169,7 @@ demo:xpub-collabra:
# - create_deployment # - create_deployment
# #
#production:xpub-ui: #production:xpub-ui:
# image: xpub/deployer:latest # image: pubsweet/deployer:latest
# stage: production # stage: production
# variables: # variables:
# PACKAGE_NAME: xpub-ui # PACKAGE_NAME: xpub-ui
...@@ -183,7 +184,7 @@ demo:xpub-collabra: ...@@ -183,7 +184,7 @@ demo:xpub-collabra:
# - create_deployment # - create_deployment
# #
#demo:xpub-ui: #demo:xpub-ui:
# image: xpub/deployer:latest # image: pubsweet/deployer:latest
# stage: demo # stage: demo
# variables: # variables:
# PACKAGE_NAME: xpub-ui # PACKAGE_NAME: xpub-ui
......
...@@ -69,7 +69,7 @@ To enable manuscript conversion via INK, add the following values to `packages/x ...@@ -69,7 +69,7 @@ To enable manuscript conversion via INK, add the following values to `packages/x
## CI ## CI
CI requires a Kubernetes cluster, resources for which can be found in `pubsweet/infra`. In order to set up a Kubernetes cluster (using AWS) you need to follow the instructions there. CI requires a Kubernetes cluster, resources for which can be found in [`pubsweet/infra`](https://gitlab.coko.foundation/pubsweet/infra). In order to set up a Kubernetes cluster (using AWS) you need to follow the instructions there. Templates for deploying to this cluster with [`pubsweet/deployer`](https://gitlab.coko.foundation/pubsweet/deployer) are located in [`xpub/deployment-config`](https://gitlab.coko.foundation/xpub/deployment-config).
## Community ## Community
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment