Skip to content

Commit

Permalink
Merge pull request #117 from lblod/internal/woodpecker
Browse files Browse the repository at this point in the history
Move to woodpecker CI
  • Loading branch information
piemonkey authored Oct 31, 2024
2 parents 9f1c3d6 + 3f770a2 commit 0229172
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 77 deletions.
77 changes: 0 additions & 77 deletions .drone.yml

This file was deleted.

13 changes: 13 additions & 0 deletions .woodpecker/.latest.yml
Original file line number Diff line number Diff line change
@@ -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
13 changes: 13 additions & 0 deletions .woodpecker/.release.yml
Original file line number Diff line number Diff line change
@@ -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*
23 changes: 23 additions & 0 deletions .woodpecker/.test-build.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 0229172

Please sign in to comment.