From fe4a04157369a8101c0c72ca4cd62e52229bdbf3 Mon Sep 17 00:00:00 2001 From: Olivier 'reivilibre Date: Sat, 4 Sep 2021 12:35:29 +0100 Subject: [PATCH] Migrate to Woodpecker syntax --- .drone.yml => .woodpecker.yml | 24 +++++++----------------- 1 file changed, 7 insertions(+), 17 deletions(-) rename .drone.yml => .woodpecker.yml (84%) diff --git a/.drone.yml b/.woodpecker.yml similarity index 84% rename from .drone.yml rename to .woodpecker.yml index 78f8fa7..df28540 100644 --- a/.drone.yml +++ b/.woodpecker.yml @@ -1,15 +1,6 @@ -kind: pipeline -type: docker -name: default +platform: linux/arm64 -platform: - os: linux - arch: arm64 - -image_pull_secrets: - - dockerconfig # using docker login, generate this file and add it as a secret. - -steps: +pipeline: # - name: restore cache # image: docker.bics.ga/reivilibre/custom_drone_cache # settings: @@ -19,14 +10,14 @@ steps: # mount: # - 'vendor' - - name: unit tests + unitTests: image: rust:1.54.0-slim commands: - apt-get -qq update && apt-get -yqq install pkg-config libssl-dev build-essential libsqlite3-dev - cargo build --all - cargo test --all - - name: test suite + testSuite: image: rust:1.54.0-slim-bullseye commands: - apt-get -qq update && apt-get -yqq install pkg-config libssl-dev build-essential libsqlite3-dev python3.9 python3.9-venv postgresql postgresql-client @@ -40,14 +31,13 @@ steps: - ./testsuite/.venv/bin/pip install -e testsuite -e datman-helper-postgres - cd testsuite && TEST_POSTGRES=$(hostname),testsuitedb,root ./.venv/bin/green - - name: deploy manual + deployManual: image: rust:1.54.0-slim when: branch: - develop - environment: - DEPLOY_SSH_KEY: - from_secret: DEPLOY_SSH_KEY + secrets: + - deploy_ssh_key commands: # warning! Doesn't seem to like hashed known_hosts... - cargo install -q mdbook - apt-get -qq update && apt-get -yqq install rsync ssh