From 290e2a0b2c9045dd29d898caed3b7a9c25d9a7cf Mon Sep 17 00:00:00 2001 From: Patrick MADELA <patrick.madela@synchrotron-soleil.fr> Date: Wed, 29 Sep 2021 06:43:16 +0000 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..d618e07 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,17 @@ +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 -- GitLab