lemmy-ui/.woodpecker.yml
Kroese 639aa28245
Multi-platform Dockerfile (#2235)
* Multi-platform Dockerfile

* Add ARM64 build to Woodpecker

* Sharp 0.32.6 is in package.json now

* Add Docker Healthcheck

* Prevent 'Inferno is in development mode' message

Currently Inferno runs in development mode because NODE_ENV=production was not set. This has a negative effect on performance, and for debugging purposes developers can override this flag in their Docker composefile.

* Fixing babel build.

* Removing node-prune.

---------

Co-authored-by: Dessalines <tyhou13@gmx.com>
2023-11-27 07:32:04 -05:00

62 lines
1.3 KiB
YAML

steps:
fetch_git_submodules:
image: node:20-alpine
commands:
- apk add git
- git submodule init
- git submodule update --recursive --remote
# - git fetch --tags
yarn:
image: node:20-alpine
commands:
- yarn
yarn_lint:
image: node:20-alpine
commands:
- yarn lint
yarn_build_dev:
image: node:20-alpine
commands:
- yarn build:dev
publish_release_docker:
image: woodpeckerci/plugin-docker-buildx
secrets: [docker_username, docker_password]
settings:
repo: dessalines/lemmy-ui
dockerfile: Dockerfile
platforms: linux/amd64, linux/arm64
tag: ${CI_COMMIT_TAG}
when:
event: tag
nightly_build:
image: woodpeckerci/plugin-docker-buildx
secrets: [docker_username, docker_password]
settings:
repo: dessalines/lemmy-ui
dockerfile: Dockerfile
platforms: linux/amd64, linux/arm64
tag: dev
when:
event: cron
notify_on_failure:
image: alpine:3
commands:
- apk add curl
- "curl -d'Lemmy-UI CI build failed: ${CI_PIPELINE_URL}' ntfy.sh/lemmy_drone_ci"
when:
status: [failure]
notify_on_tag_deploy:
image: alpine:3
commands:
- apk add curl
- "curl -d'lemmy-ui:${CI_COMMIT_TAG} deployed' ntfy.sh/lemmy_drone_ci"
when:
event: tag