diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index becae0d..0000000 --- a/.drone.yml +++ /dev/null @@ -1,77 +0,0 @@ ---- -kind: pipeline -type: docker -name: verify -steps: -- name: install - image: node:14 - commands: - - npm install -- name: lint - image: node:14 - commands: - - npm run lint -- name: build-dry-run - image: plugins/docker - settings: - repo: lblod/notulen-prepublish-service - dry_run: true - purge: true -trigger: - event: - - push ---- -kind: pipeline -type: docker -name: push-latest-build -steps: -- name: push-latest-build - image: plugins/docker - settings: - repo: lblod/notulen-prepublish-service - username: - from_secret: docker_username - password: - from_secret: docker_password -trigger: - branch: - - master - event: - exclude: - - pull_request ---- -kind: pipeline -type: docker -name: release -steps: -- name: build-dry-run - image: plugins/docker - settings: - repo: lblod/notulen-prepublish-service - dry_run: true -- name: push-tagged-build - image: plugins/docker - settings: - repo: lblod/notulen-prepublish-service - tags: ${DRONE_TAG##v} - username: - from_secret: docker_username - password: - from_secret: docker_password - purge: true -trigger: - event: - - tag ---- -kind: secret -name: docker_username -data: lI+pVVKw37YqgJSRkHzFBO838q3CpXcWfALx+oL4i3g1xaoIZyQi3w== ---- -kind: secret -name: docker_password -data: Rlh766Mh1Ikv3vCBRSA3tYa/qYZS6EmMf1RYhwsW6qbLT0TlZhW7MHQiKu6yYbdg4HQ8MyRROFSqAFW1Zdxx7A== ---- -kind: signature -hmac: a3257e10990c444685c184e83bb026e3d0af8eed07c3f691215dec8cae29c87b - -... diff --git a/.woodpecker/.latest.yml b/.woodpecker/.latest.yml new file mode 100644 index 0000000..f9e210e --- /dev/null +++ b/.woodpecker/.latest.yml @@ -0,0 +1,13 @@ +steps: + build-latest: + image: woodpeckerci/plugin-docker-buildx + settings: + repo: "${CI_REPO_OWNER}/${CI_REPO_NAME}" + tags: latest + platforms: linux/amd64 + # Can enable arm64 when moving to mu-javascript-template version >1.8 + # platforms: linux/amd64, linux/arm64 + secrets: [ docker_username, docker_password ] +when: + branch: master + event: push diff --git a/.woodpecker/.release.yml b/.woodpecker/.release.yml new file mode 100644 index 0000000..db25fb5 --- /dev/null +++ b/.woodpecker/.release.yml @@ -0,0 +1,13 @@ +steps: + build-release: + image: woodpeckerci/plugin-docker-buildx + settings: + repo: "${CI_REPO_OWNER}/${CI_REPO_NAME}" + tags: "${CI_COMMIT_TAG##v}" # drops v from version tag + platforms: linux/amd64 + # Can enable arm64 when moving to mu-javascript-template version >1.8 + # platforms: linux/amd64, linux/arm64 + secrets: [ docker_username, docker_password ] +when: + event: tag + ref: refs/tags/v* diff --git a/.woodpecker/.test-build.yml b/.woodpecker/.test-build.yml new file mode 100644 index 0000000..3ca8069 --- /dev/null +++ b/.woodpecker/.test-build.yml @@ -0,0 +1,23 @@ +steps: + install: + image: node:14-alpine + commands: + - npm i + # Our lockfile is incompatible with the version of npm used with node:14. The old scripts just + # `npm i`, so we do that. We should update to a sane node version and change this. + # - npm ci + lint: + image: node:14-alpine + commands: + - npm run lint + build-dry-run: + image: woodpeckerci/plugin-docker-buildx + settings: + repo: "${CI_REPO_OWNER}/${CI_REPO_NAME}" + platforms: linux/amd64 + # Can enable arm64 when moving to mu-javascript-template version >1.8 + # platforms: linux/amd64, linux/arm64 + dry_run: true +when: + event: + - pull_request