mirror of
https://codeberg.org/keyoxide/keyoxide-web.git
synced 2024-12-22 14:59:29 -07:00
feat: improve CI config
This commit is contained in:
parent
1e1a02fb99
commit
bda71db95d
4 changed files with 48 additions and 57 deletions
|
@ -1,57 +0,0 @@
|
||||||
steps:
|
|
||||||
test:
|
|
||||||
image: node
|
|
||||||
commands:
|
|
||||||
- yarn --pure-lockfile
|
|
||||||
- yarn run test
|
|
||||||
|
|
||||||
build-latest-container:
|
|
||||||
when:
|
|
||||||
branch: main
|
|
||||||
event: tag
|
|
||||||
image: plugins/docker
|
|
||||||
settings:
|
|
||||||
registry: https://codeberg.org/v2
|
|
||||||
username:
|
|
||||||
from_secret: codeberg_username
|
|
||||||
password:
|
|
||||||
from_secret: codeberg_password
|
|
||||||
repo: codeberg.org/keyoxide/keyoxide-web
|
|
||||||
tags: latest
|
|
||||||
build_args_from_env:
|
|
||||||
- CI_COMMIT_SHA
|
|
||||||
- CI_COMMIT_BRANCH
|
|
||||||
|
|
||||||
build-tag-container:
|
|
||||||
when:
|
|
||||||
branch: main
|
|
||||||
event: tag
|
|
||||||
image: plugins/docker
|
|
||||||
settings:
|
|
||||||
registry: https://codeberg.org/v2
|
|
||||||
username:
|
|
||||||
from_secret: codeberg_username
|
|
||||||
password:
|
|
||||||
from_secret: codeberg_password
|
|
||||||
repo: codeberg.org/keyoxide/keyoxide-web
|
|
||||||
auto_tag: true
|
|
||||||
build_args_from_env:
|
|
||||||
- CI_COMMIT_SHA
|
|
||||||
- CI_COMMIT_BRANCH
|
|
||||||
|
|
||||||
build-dev-container:
|
|
||||||
when:
|
|
||||||
branch: dev
|
|
||||||
event: push
|
|
||||||
image: plugins/docker
|
|
||||||
settings:
|
|
||||||
registry: https://codeberg.org/v2
|
|
||||||
username:
|
|
||||||
from_secret: codeberg_username
|
|
||||||
password:
|
|
||||||
from_secret: codeberg_password
|
|
||||||
repo: codeberg.org/keyoxide/keyoxide-web
|
|
||||||
tags: dev
|
|
||||||
build_args_from_env:
|
|
||||||
- CI_COMMIT_SHA
|
|
||||||
- CI_COMMIT_BRANCH
|
|
20
.woodpecker/.release-dev.yml
Normal file
20
.woodpecker/.release-dev.yml
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
when:
|
||||||
|
branch: dev
|
||||||
|
event: push
|
||||||
|
steps:
|
||||||
|
build-latest-container:
|
||||||
|
image: woodpeckerci/plugin-docker-buildx
|
||||||
|
settings:
|
||||||
|
registry: https://codeberg.org/v2
|
||||||
|
username:
|
||||||
|
from_secret: codeberg_username
|
||||||
|
password:
|
||||||
|
from_secret: codeberg_password
|
||||||
|
repo: codeberg.org/keyoxide/keyoxide-web
|
||||||
|
tag: dev
|
||||||
|
build_args_from_env:
|
||||||
|
- CI_COMMIT_SHA
|
||||||
|
- CI_COMMIT_BRANCH
|
||||||
|
|
||||||
|
depends_on:
|
||||||
|
- test
|
20
.woodpecker/.release.yml
Normal file
20
.woodpecker/.release.yml
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
when:
|
||||||
|
branch: main
|
||||||
|
event: tag
|
||||||
|
steps:
|
||||||
|
build-latest-container:
|
||||||
|
image: woodpeckerci/plugin-docker-buildx
|
||||||
|
settings:
|
||||||
|
registry: https://codeberg.org/v2
|
||||||
|
username:
|
||||||
|
from_secret: codeberg_username
|
||||||
|
password:
|
||||||
|
from_secret: codeberg_password
|
||||||
|
repo: codeberg.org/keyoxide/keyoxide-web
|
||||||
|
auto_tag: true
|
||||||
|
build_args_from_env:
|
||||||
|
- CI_COMMIT_SHA
|
||||||
|
- CI_COMMIT_BRANCH
|
||||||
|
|
||||||
|
depends_on:
|
||||||
|
- test
|
8
.woodpecker/.test.yml
Normal file
8
.woodpecker/.test.yml
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
when:
|
||||||
|
event: [push, pull_request, tag, release, manual]
|
||||||
|
steps:
|
||||||
|
test:
|
||||||
|
image: node:20
|
||||||
|
commands:
|
||||||
|
- npm ci
|
||||||
|
- npm test
|
Loading…
Reference in a new issue