From 7f7c58206965ab6a986d55d93ea63ae5f1a731e5 Mon Sep 17 00:00:00 2001 From: Daniel_I_Am Date: Sat, 15 Aug 2020 18:43:12 -0400 Subject: [PATCH] Cache build files and remove docker and deploy stages --- .gitlab-ci.yml | 37 +------------------------------------ 1 file changed, 1 insertion(+), 36 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index cbcdf16..9a72de9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -11,8 +11,6 @@ stages: - build - test - release - - docker - - deploy cache: key: "$CI_JOB_STAGE-$CI_COMMIT_REF_SLUG" @@ -76,37 +74,4 @@ release: - 'dotnet publish -c Release --runtime linux-musl-x64 -o ../build' artifacts: paths: - - build/* - - -docker: - stage: docker - only: - changes: - - ChaosBot/**/* - refs: - - master - tags: - - docker - - hawkeye - dependencies: - - release - script: - - docker info - - -deploy: - stage: deploy - only: - changes: - - ChaosBot/**/* - refs: - - master - tags: - - docker - - hawkeye - dependencies: - - docker - script: - - 'apk add curl jq' - - 'curl -X POST $API_URI/api/endpoints/$ENDPOINT_URI/docker/containers/$CONTAINER_ID/restart -H "Authorization: Bearer `curl -X POST $API_URI/api/auth -H "Content-Type: application/json" -d "{\"Username\": \"$API_USER\", \"Password\": \"$API_PASS\"}"" | jq -r ".jwt"`"' + - ../build/* \ No newline at end of file