From ce6e30f24bf560295921afafbb505e4161fd0381 Mon Sep 17 00:00:00 2001 From: Recolic K <bensl@microsoft.com> Date: Thu, 29 Jul 2021 17:57:38 +0800 Subject: [PATCH] ci autobuild --- .gitlab-ci.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..e888cd4 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,34 @@ +image: docker:19.03.12 + +variables: + # When using dind service, you must instruct docker to talk with the + # daemon started inside of the service. The daemon is available with + # a network connection instead of the default /var/run/docker.sock socket. + # + # The 'docker' hostname is the alias of the service container as described at + # https://docs.gitlab.com/ee/ci/docker/using_docker_images.html#accessing-the-services + # + # If you're using GitLab Runner 12.7 or earlier with the Kubernetes executor and Kubernetes 1.6 or earlier, + # the variable must be set to tcp://localhost:2375 because of how the + # Kubernetes executor connects services to the job container + # DOCKER_HOST: tcp://localhost:2375 + # + DOCKER_HOST: tcp://docker:2375 + # + # This instructs Docker not to start over TLS. + DOCKER_TLS_CERTDIR: "" + +services: + - docker:19.03.12-dind + +before_script: + - docker info + +build: + stage: build + script: + - docker login -u recolic -p "$docker_pswd" + - docker build -t recolic/gitlab2github . + - docker push recolic/gitlab2github + + -- GitLab