refactor: generalize docker image name

This commit is contained in:
Rainer Killinger
2019-12-10 13:56:19 +01:00
parent dc79dc8feb
commit 466836cfd0
2 changed files with 6 additions and 6 deletions

View File

@@ -80,10 +80,10 @@ docker:
- docker:dind - docker:dind
script: script:
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN registry.gitlab.com - docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN registry.gitlab.com
- docker build -t registry.gitlab.com/openstapps/api/copy:$CI_BUILD_REF_NAME . - docker build -t registry.gitlab.com/openstapps/api/cli:$CI_BUILD_REF_NAME .
- docker push registry.gitlab.com/openstapps/api/copy:$CI_BUILD_REF_NAME - docker push registry.gitlab.com/openstapps/api/cli:$CI_BUILD_REF_NAME
- docker build -t registry.gitlab.com/openstapps/api/copy:latest . - docker build -t registry.gitlab.com/openstapps/api/cli:latest .
- docker push registry.gitlab.com/openstapps/api/copy:latest - docker push registry.gitlab.com/openstapps/api/cli:latest
tags: tags:
- docker - docker
only: only:

View File

@@ -57,11 +57,11 @@ The only available option for `e2e` command. File path to json test files each c
with docker when backend is running on `localhost:3000`: with docker when backend is running on `localhost:3000`:
```shell ```shell
docker run --net=host registry.gitlab.com/openstapps/api/copy copy Place https://stappsbe01.innocampus.tu-berlin.de http://localhost:3000 100 docker run --net=host registry.gitlab.com/openstapps/api/cli copy Place https://stappsbe01.innocampus.tu-berlin.de http://localhost:3000 100
``` ```
Or using `e2e` command: Or using `e2e` command:
```shell ```shell
docker run --net=host registry.gitlab.com/openstapps/api/copy e2e http://localhost:3000 docker run --net=host registry.gitlab.com/openstapps/api/cli e2e http://localhost:3000
``` ```