From 85f7342080dfd963886c12b6978095771fd3cfcc Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Wed, 15 Jul 2020 00:52:09 +0200 Subject: [PATCH] ci: migrate to Drone CI Also does the deployment of the CV. --- .drone.yml | 32 ++++++++++++++++++++++++++++++++ .gitlab-ci.yml | 7 ------- 2 files changed, 32 insertions(+), 7 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..680670f --- /dev/null +++ b/.drone.yml @@ -0,0 +1,32 @@ +kind: pipeline +name: deploy CV + +steps: + - name: build + image: aergus/latex + pull: always + commands: + - make + + - name: deploy + image: appleboy/drone-scp + settings: + source: /drone/src/*.pdf + strip_components: 2 # Make sure the tarball doesn't contain leading path + rm: true # Make sure only the newly generated files are left + host: + from_secret: ssh_host + target: + from_secret: ssh_target + username: + from_secret: ssh_user + key: + from_secret: ssh_key + port: + from_secret: ssh_port + when: + branch: + - master + event: + exclude: + - pull_request diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index 32700da..0000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,7 +0,0 @@ -compile_pdf: - image: aergus/latex - script: - - make - artifacts: - paths: - - cv_*.pdf