safetwitch/.woodpecker.yml

34 lines
840 B
YAML
Raw Normal View History

2023-08-13 18:11:10 +00:00
steps:
2023-12-01 00:54:05 +00:00
# lint:
# image: docker.io/node:16
# commands:
# - git clone --recurse-submodules -j8 https://codeberg.org/${CI_REPO_OWNER}/safetwitch
# - npm i
# - npm run lint
# when:
# event: push
# branch: master
2023-09-27 19:49:31 +00:00
2023-07-10 20:31:04 +00:00
build:
2023-07-10 20:32:11 +00:00
image: docker.io/node:16
2023-07-10 20:31:04 +00:00
commands:
2023-12-01 00:54:05 +00:00
- git clone --recurse-submodules -j8 https://codeberg.org/${CI_REPO_OWNER}/safetwitch
- npm run i
2023-09-27 19:38:38 +00:00
- npm run build
2023-11-26 18:37:17 +00:00
when:
event: push
branch: master
2023-09-27 19:49:31 +00:00
2023-09-27 19:38:38 +00:00
publish:
image: woodpeckerci/plugin-docker-buildx
settings:
2023-09-27 19:41:43 +00:00
dockerfile: Dockerfile
2023-09-27 19:56:58 +00:00
platforms: linux/amd64,linux/arm/v7,linux/arm/v8
2023-09-27 19:38:38 +00:00
registry: codeberg.org
2023-10-05 02:14:28 +00:00
auto_tag: true
2023-09-27 19:51:55 +00:00
repo: codeberg.org/${CI_REPO_OWNER}/safetwitch
2023-09-27 19:38:38 +00:00
username: ${CI_REPO_OWNER}
password:
from_secret: cb_token
when:
2023-11-26 18:37:17 +00:00
event: tag