Skip to content
Snippets Groups Projects
Commit 9b39447c authored by Sam Galson's avatar Sam Galson
Browse files

decouple image name and docker user

parent 8ff93a0d
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/pubsweet/infra.git
...@@ -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
......
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