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

Update .gitlab-ci.yml file

parent bc6d3fa9
Branches main
No related tags found
No related merge requests found
Pipeline #117615 failed
......@@ -4,29 +4,20 @@ stages:
variables:
IMAGE_NAME: registry.gitlab.fel.cvut.cz:5000/shestser/piplenes
DOCKER_DRIVER: overlay2
services:
- name: docker:20.10.16-dind
command: ["--experimental", "--registry-mirror=https://registry.gitlab.fel.cvut.cz"]
build:
stage: build
image: docker:20.10.16
image: docker:latest
script:
- docker info
- docker build -t $IMAGE_NAME:${CI_COMMIT_SHORT_SHA} .
- echo $CI_REGISTRY_PASSWORD | docker login -u $CI_REGISTRY_USER --password-stdin $CI_REGISTRY
- docker push $IMAGE_NAME:${CI_COMMIT_SHORT_SHA}
only:
- main
push:
stage: push
image: docker:20.10.16
image: docker:latest
script:
- echo $CI_REGISTRY_PASSWORD | docker login -u $CI_REGISTRY_USER --password-stdin $CI_REGISTRY
- docker pull $IMAGE_NAME:${CI_COMMIT_SHORT_SHA}
- docker push $IMAGE_NAME:${CI_COMMIT_SHORT_SHA}
only:
- main
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