Commit ed684c4a authored by Tomáš Pecka's avatar Tomáš Pecka

Fix name for obs image ocs -> osc

parent ec2de2f0
Pipeline #23751 passed with stage
in 2 minutes and 5 seconds
image: gitlab.fit.cvut.cz:5000/ict/alpine-docker-images/ci:3.8
stages:
- build
- deploy
.docker: &docker_template
cache: {} # disable
stage: build
variables:
DOCKER_DRIVER: overlay2
DOCKER_HOST: docker
......@@ -16,7 +15,7 @@ stages:
- docker info
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
script:
- IMAGE="${CI_JOB_NAME#build:}"
- IMAGE="${CI_JOB_NAME#deploy:}"
- IMAGE_NAME="${CI_REGISTRY_IMAGE}/${IMAGE}:latest"
- cd "$IMAGE"
- echo "Building image '${IMAGE}' as '{IMAGE_NAME}'"
......@@ -24,5 +23,6 @@ stages:
- docker push "$IMAGE_NAME"
dependencies: []
build:ocs:
deploy:osc:
stage: deploy
<<: *docker_template
......@@ -3,6 +3,6 @@
Every image has its own directory. If you want autobuild, then add the following lines into `.gitlab-ci.yml` file:
```
build:<dirname>:
deploy:<dirname>:
<<: *docker_template
```
Markdown is supported
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