2023-08-13 13:11:10 -05:00
|
|
|
steps:
|
2023-09-16 10:45:18 -05:00
|
|
|
lint:
|
|
|
|
image: docker.io/node:16
|
|
|
|
commands:
|
|
|
|
- git clone --recurse-submodules -j8 https://codeberg.org/dragongoose/safetwitch
|
2023-09-16 10:50:09 -05:00
|
|
|
- npm i
|
2023-09-16 10:45:18 -05:00
|
|
|
- npm run lint
|
2023-07-10 15:31:04 -05:00
|
|
|
build:
|
2023-07-10 15:32:11 -05:00
|
|
|
image: docker.io/node:16
|
2023-07-10 15:31:04 -05:00
|
|
|
commands:
|
2023-09-27 14:38:38 -05:00
|
|
|
- npm run build
|
|
|
|
publish:
|
|
|
|
image: woodpeckerci/plugin-docker-buildx
|
|
|
|
settings:
|
2023-09-27 14:41:43 -05:00
|
|
|
dockerfile: Dockerfile
|
2023-09-27 14:38:38 -05:00
|
|
|
platforms: linux/arm/v7,linux/arm64/v8,linux/amd64
|
2023-09-27 14:41:43 -05:00
|
|
|
repo: codeberg.org/${CI_REPO_OWNER}/safetwitch
|
2023-09-27 14:38:38 -05:00
|
|
|
registry: codeberg.org
|
|
|
|
tags: ${CI_COMMIT_TAG},latest
|
|
|
|
username: ${CI_REPO_OWNER}
|
|
|
|
password:
|
|
|
|
from_secret: cb_token
|
|
|
|
when:
|
|
|
|
event: tag
|
2023-09-27 14:41:43 -05:00
|
|
|
path: Dockerfile
|