Skip to content
Snippets Groups Projects
Commit 290e2a0b authored by MADELA Patrick's avatar MADELA Patrick
Browse files

Update .gitlab-ci.yml file

parent a08d944a
No related branches found
No related tags found
No related merge requests found
image: docker:latest
services:
- docker:dind
variables:
LATEST_VER: "registry.gitlab.com/synchrotron-soleil/control-system/containers/dev-el6:latest"
stages:
- Build image and Push to Docker Hub
docker build and push:
stage: Build image and Push to Docker Hub
only:
- master
before_script:
- echo "$REGISTRY_PASSWORD" | docker login -u "$REGISTRY_USER" --password-stdin
script:
- docker info
- docker build -t $LATEST_VER .
- docker push $LATEST_VER
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