28 lines
548 B
YAML
28 lines
548 B
YAML
when:
|
|
- event: push
|
|
branch: master
|
|
- event: manual
|
|
|
|
steps:
|
|
- name: test
|
|
image: node:20-slim
|
|
commands:
|
|
- npm ci
|
|
- npm run test
|
|
|
|
- name: build
|
|
image: node:20-slim
|
|
commands:
|
|
- npm run build
|
|
|
|
- name: publish
|
|
image: woodpeckerci/plugin-docker-buildx:5.2.2
|
|
settings:
|
|
username: adamas
|
|
registry: https://forge.adm.ink
|
|
password:
|
|
from_secret: DOCKER_PASSWORD
|
|
repo: forge.adm.ink/adamas/curriculum
|
|
purge: true
|
|
compress: true
|
|
tags: ${CI_COMMIT_TAG} |