From e6e20b8eecfdbd3924ae923f2655ed31176c6e16 Mon Sep 17 00:00:00 2001 From: Recolic K <bensl@microsoft.com> Date: Thu, 22 Jul 2021 16:29:33 +0800 Subject: [PATCH] switch from codebuild to gitlab ci --- .gitlab-ci.yml | 140 ++++++------------------ buildspec.yaml => buildspec.yaml.backup | 0 2 files changed, 33 insertions(+), 107 deletions(-) rename buildspec.yaml => buildspec.yaml.backup (100%) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index fd3f216..3959085 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,109 +1,35 @@ -image: recolic/rserver-monitor -stages: - - test - -rproxy: - stage: test - only: - - schedules - script: "/do.bash rproxy" - -drive: - stage: test - only: - - schedules - script: "/do.bash drive" - -ss-tw: - stage: test - only: - - schedules - script: "/do.bash ss-tw" - -ss-us1: - stage: test - only: - - schedules - script: "/do.bash ss-us1" - -ss-us5: - stage: test - only: - - schedules - script: "/do.bash ss-us5" - -ss-us6: - stage: test - only: - - schedules - script: "/do.bash ss-us6" - -ovpn-tw: - stage: test - only: - - schedules - script: "/do.bash ovpn-tw" - -www: - stage: test - only: - - schedules - script: "/do.bash www" - -mail: - stage: test - only: - - schedules - script: "/do.bash mail" - -tm: - stage: test - only: - - schedules - script: "/do.bash tm" - -git: - stage: test - only: - - schedules - script: "/do.bash git" - -zhixiang: - stage: test - only: - - schedules - script: "/do.bash zhixiang" - -mc: - stage: test - only: - - schedules - script: "/do.bash mc" - allow_failure: true - -push-httpdb-agent: - stage: test - only: - - schedules - script: "/do.bash push-httpdb-agent" - allow_failure: true - -ddns-wuhan: - stage: test - only: - - schedules - script: "/do.bash ddns-wuhan" - -ddns-us: - stage: test - only: - - schedules - script: "/do.bash ddns-us" - -dl: - stage: test - only: - - schedules - script: "/do.bash dl" +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 + - env + +build: + stage: build + script: + - docker login -u recolic -p "$docker_pswd" + - docker build -t recolic/rserver-status . + - docker push recolic/rserver-status diff --git a/buildspec.yaml b/buildspec.yaml.backup similarity index 100% rename from buildspec.yaml rename to buildspec.yaml.backup -- GitLab