forked from Mirrors/keyoxide-web
57 lines
No EOL
1.3 KiB
YAML
57 lines
No EOL
1.3 KiB
YAML
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 |