Przeglądaj źródła

docker image build command updated

Espinoza Guillermo 6 lat temu
rodzic
commit
c7dd0cee2f
1 zmienionych plików z 12 dodań i 0 usunięć
  1. 12 0
      .gitlab-ci.yml

+ 12 - 0
.gitlab-ci.yml

@@ -33,6 +33,18 @@ docker:
     refs:
       - pushes
 
+docker_tag:
+  stage: build
+  script:
+    - docker info
+    - docker login -u $DOCKER_USER -p $DOCKER_PWD docker.infra.flowdat.com
+    - docker pull $CONTAINER_IMAGE:latest || true
+    - docker build --no-cache --tag $CONTAINER_IMAGE:${CI_COMMIT_TAG} --build-arg DIR_INSTALL=/opt/installer/tools tools/
+    - docker push $CONTAINER_IMAGE:${CI_COMMIT_TAG}
+  only:
+    refs:
+      - tags
+
 installer_branch:
   image: docker.infra.flowdat.com/fd3/sf-php:latest
   script: