2023-03-16 06:42:47 -06:00
|
|
|
pipeline:
|
2023-03-28 02:35:14 -06:00
|
|
|
test:
|
|
|
|
image: node
|
|
|
|
commands:
|
|
|
|
- yarn --pure-lockfile
|
|
|
|
- yarn run test
|
|
|
|
|
2023-03-16 06:42:47 -06:00
|
|
|
build-latest-container:
|
2023-03-16 07:05:58 -06:00
|
|
|
when:
|
|
|
|
branch: main
|
|
|
|
event: tag
|
2023-03-16 06:42:47 -06:00
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
2023-03-16 07:05:58 -06:00
|
|
|
registry: https://codeberg.org/v2
|
2023-03-16 06:42:47 -06:00
|
|
|
username:
|
|
|
|
from_secret: codeberg_username
|
|
|
|
password:
|
|
|
|
from_secret: codeberg_password
|
2023-03-16 07:05:58 -06:00
|
|
|
repo: codeberg.org/keyoxide/keyoxide-web
|
2023-03-16 06:42:47 -06:00
|
|
|
tags: latest
|
2023-03-16 07:05:58 -06:00
|
|
|
|
|
|
|
build-tag-container:
|
2023-03-16 06:42:47 -06:00
|
|
|
when:
|
|
|
|
branch: main
|
|
|
|
event: tag
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
2023-03-16 07:05:58 -06:00
|
|
|
registry: https://codeberg.org/v2
|
2023-03-16 06:42:47 -06:00
|
|
|
username:
|
|
|
|
from_secret: codeberg_username
|
|
|
|
password:
|
|
|
|
from_secret: codeberg_password
|
2023-03-16 07:05:58 -06:00
|
|
|
repo: codeberg.org/keyoxide/keyoxide-web
|
2023-03-16 06:42:47 -06:00
|
|
|
auto_tag: true
|
|
|
|
|
|
|
|
build-dev-container:
|
2023-03-16 07:05:58 -06:00
|
|
|
when:
|
|
|
|
branch: dev
|
|
|
|
event: push
|
2023-03-16 06:42:47 -06:00
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
2023-03-16 07:05:58 -06:00
|
|
|
registry: https://codeberg.org/v2
|
2023-03-16 06:42:47 -06:00
|
|
|
username:
|
|
|
|
from_secret: codeberg_username
|
|
|
|
password:
|
|
|
|
from_secret: codeberg_password
|
2023-03-16 07:05:58 -06:00
|
|
|
repo: codeberg.org/keyoxide/keyoxide-web
|
|
|
|
tags: dev
|