Skip to content
Snippets Groups Projects
Commit e8914095 authored by Fortune Iriaye's avatar Fortune Iriaye
Browse files

Added ci.yml file

parent df9a3865
No related branches found
No related tags found
No related merge requests found
Pipeline #13299 failed with stage
in 1 minute and 8 seconds
default:
image: docker:latest
stages:
- build
variables:
PACKAGE_NAME: "neuroestimator"
DOCKER_IMAGE: "$CI_REGISTRY_IMAGE/$PACKAGE_NAME"
DOCKER_TLS_CERTDIR: "/certs"
before_script:
- unset DOCKER_HOST
- echo "${CI_REGISTRY_PASSWORD}" | docker login -u "${CI_REGISTRY_USER}" --password-stdin ${CI_REGISTRY}
push_docker_image:
stage: build
services:
- docker:dind
script:
- docker build -t $DOCKER_IMAGE:$CI_COMMIT_SHORT_SHA -f docker/Dockerfile .
- docker push $DOCKER_IMAGE:$CI_COMMIT_SHORT_SHA
only:
- main # Only run on the main branch
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