kind: pipeline name: default workspace: path: /drone/src steps: - name: download-controller-main image: plugins/download settings: source: https://git.serguzim.me/emgauwa/controller/archive/main.tar.gz destination: emgauwa-controller.tar.gz when: ref: - refs/heads/main - refs/tags/v* - name: download-controller-testing image: plugins/download settings: source: https://git.serguzim.me/emgauwa/controller/archive/testing.tar.gz destination: emgauwa-controller.tar.gz when: ref: - refs/heads/testing - refs/tags/testing-v* - name: build-controller image: serguzim/emgauwa-builder pull: always commands: - tar xzf emgauwa-controller.tar.gz - cd controller - mkdir build - cd build - cmake -DWIRING_PI_DEBUG=on .. - make - name: test image: serguzim/emgauwa-builder pull: always environment: EMGAUWA_CONTROLLER_EXE: /drone/src/controller/build/controller commands: - mkdir build - cd build - cmake .. - make test - name: gitea_release image: plugins/gitea-release settings: api_key: from_secret: gitea_token base_url: https://git.serguzim.me title: ${DRONE_TAG} when: event: tag trigger: ref: include: - refs/heads/main - refs/heads/testing - refs/tags/**