From f4d35ab7519112ede82c3102cbf2d4a66ceabf27 Mon Sep 17 00:00:00 2001 From: Sebastian Hugentobler Date: Thu, 7 Jun 2018 10:21:28 +0200 Subject: [PATCH] replace gitlab ci with drone --- .drone.yml | 15 +++++++++++++++ .gitlab-ci.yml | 10 ---------- 2 files changed, 15 insertions(+), 10 deletions(-) create mode 100644 .drone.yml delete mode 100644 .gitlab-ci.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..fd25ac0 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,15 @@ +pipeline: + docker: + image: plugins/docker + repo: registry.gitlab.com/thallian/docker-dovecot-ldap + registry: registry.gitlab.com + autotag: true + secrets: [ docker_username, docker_password ] + tags: + - ${DRONE_COMMIT_SHA} + - ${DRONE_COMMIT_BRANCH} + - latest + notify: + image: plugins/matrix + secrets: [ matrix_username, matrix_password, matrix_homeserver, matrix_roomid ] + diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index dfde774..0000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,10 +0,0 @@ -build: - image: docker:latest - services: - - docker:dind - stage: build - script: - - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY - - docker build --pull --tag $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME --tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA . - - docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME - - docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA