From 4532fd90eaf955ec6041bf6173a3691d8a3f686f Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Fri, 25 Feb 2022 20:49:19 +0100 Subject: [PATCH] Move to woodpecker --- .drone.yml | 81 --------------------------------- .licenseignore | 2 +- .woodpecker/.publish-docker.yml | 37 +++++++++++++++ .woodpecker/.publish-npm.yml | 11 +++++ .woodpecker/.test.yml | 9 ++++ 5 files changed, 58 insertions(+), 82 deletions(-) delete mode 100644 .drone.yml create mode 100644 .woodpecker/.publish-docker.yml create mode 100644 .woodpecker/.publish-npm.yml create mode 100644 .woodpecker/.test.yml diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index fa7ec3f..0000000 --- a/.drone.yml +++ /dev/null @@ -1,81 +0,0 @@ ---- -kind: pipeline -name: release-stable-version - -steps: - - name: build stable proxy container - image: plugins/docker - settings: - username: - from_secret: docker_username - password: - from_secret: docker_password - dockerfile: docker/proxy/Dockerfile - repo: keyoxide/doip-proxy - tags: stable - - name: build tag proxy container - image: plugins/docker - settings: - username: - from_secret: docker_username - password: - from_secret: docker_password - dockerfile: docker/proxy/Dockerfile - repo: keyoxide/doip-proxy - auto_tag: true - - name: publish on npm - image: plugins/npm - settings: - username: yarmo_eu - password: - from_secret: npm_password - email: - from_secret: npm_email - -trigger: - event: - - tag - ---- -kind: pipeline -name: release-dev-version - -steps: - - name: run tests - image: node - commands: - - yarn - - yarn run prepare - - yarn run test - - name: build dev proxy container - image: plugins/docker - settings: - username: - from_secret: docker_username - password: - from_secret: docker_password - dockerfile: docker/proxy/Dockerfile - repo: keyoxide/doip-proxy - tags: dev - -trigger: - branch: - - main - event: - - push - ---- -kind: pipeline -name: test-pr - -steps: - - name: run tests - image: node - commands: - - yarn - - yarn run prepare - - yarn run test - -trigger: - event: - - pull_request \ No newline at end of file diff --git a/.licenseignore b/.licenseignore index 8aa8b80..b46fcb0 100644 --- a/.licenseignore +++ b/.licenseignore @@ -12,11 +12,11 @@ ignore docs examples \.husky +\.woodpecker package.json yarn.lock \.editorconfig \.gitignore \.licenseignore -\.drone.yml Dockerfile \ No newline at end of file diff --git a/.woodpecker/.publish-docker.yml b/.woodpecker/.publish-docker.yml new file mode 100644 index 0000000..afa10d2 --- /dev/null +++ b/.woodpecker/.publish-docker.yml @@ -0,0 +1,37 @@ +pipeline: + build-dev-container: + image: plugins/docker + settings: + username: + from_secret: docker_username + password: + from_secret: docker_password + dockerfile: docker/proxy/Dockerfile + repo: keyoxide/doip-proxy + tags: dev + when: + event: push + build-stable-container: + image: plugins/docker + settings: + username: + from_secret: docker_username + password: + from_secret: docker_password + dockerfile: docker/proxy/Dockerfile + repo: keyoxide/doip-proxy + tags: stable + when: + event: tag + build-tag-container: + image: plugins/docker + settings: + username: + from_secret: docker_username + password: + from_secret: docker_password + dockerfile: docker/proxy/Dockerfile + repo: keyoxide/doip-proxy + auto_tag: true + when: + event: tag \ No newline at end of file diff --git a/.woodpecker/.publish-npm.yml b/.woodpecker/.publish-npm.yml new file mode 100644 index 0000000..690ec52 --- /dev/null +++ b/.woodpecker/.publish-npm.yml @@ -0,0 +1,11 @@ +pipeline: + publish-npm: + image: plugins/npm + settings: + username: yarmo_eu + password: + from_secret: npm_password + email: + from_secret: npm_email + when: + event: tag \ No newline at end of file diff --git a/.woodpecker/.test.yml b/.woodpecker/.test.yml new file mode 100644 index 0000000..e091209 --- /dev/null +++ b/.woodpecker/.test.yml @@ -0,0 +1,9 @@ +pipeline: + test: + image: node + commands: + - yarn + - yarn run prepare + - yarn run test + when: + event: [push, pull_request, tag] \ No newline at end of file