Skip to content
Snippets Groups Projects
Commit 27ed30e0 authored by Bc. Sergei Shestakov's avatar Bc. Sergei Shestakov
Browse files

Update .gitlab-ci.yml file

parent 0f0224b4
No related branches found
No related tags found
No related merge requests found
Pipeline #117432 failed
......@@ -3,17 +3,24 @@ stages:
- push
variables:
IMAGE_NAME: registry.gitlab.fel.cvut.cz/your-username/test-app
IMAGE_NAME: registry.gitlab.fel.cvut.cz:5000/shestser/piplenes
DOCKER_DRIVER: overlay2
services:
- docker:20.10.16-dind
build:
stage: build
image: docker:20.10.16
script:
- docker info
- docker build -t $IMAGE_NAME:${CI_COMMIT_SHORT_SHA} .
only:
- main
push:
stage: push
image: docker:20.10.16
script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker push $IMAGE_NAME:${CI_COMMIT_SHORT_SHA}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment