From 999f1b0fde80697d66fd302f72897029ce3e79e2 Mon Sep 17 00:00:00 2001 From: RainSun Date: Mon, 2 Aug 2021 19:30:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=B3=E9=97=AD=E9=83=A8=E7=BD=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitlab-ci.yml | 36 ------------------------------------ 1 file changed, 36 deletions(-) delete mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index c099ed0..0000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,36 +0,0 @@ -variables: - APP_NAME: "wxapi" - IMAGE_NAME: "$APP_NAME:$CI_COMMIT_REF_NAME-$CI_COMMIT_SHORT_SHA" - DOCKER_FILE_PATH: "./Dockerfile" - -stages: - - build - - clear - - deploy - -build: - stage: build - image: docker:latest - services: - - name: docker:dind - tags: - - dockerbase - script: - - ls -a - - docker build -t ${IMAGE_NAME} -f ${DOCKER_FILE_PATH} . - -clear: - stage: clear - tags: - - dockerbase - script: - - docker stop ${APP_NAME} - - docker rm ${APP_NAME} - allow_failure: true - -deploy: - stage: deploy - tags: - - dockerbase - script: - - docker run -t -d --name ${APP_NAME} -p 5013:80 ${IMAGE_NAME}