keyoxide-web/.woodpecker.yml

57 lines
1.3 KiB
YAML
Raw Normal View History

2023-08-25 07:20:11 -06:00
steps:
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
build_args_from_env:
- CI_COMMIT_SHA
- CI_COMMIT_BRANCH
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_args_from_env:
- CI_COMMIT_SHA
- CI_COMMIT_BRANCH
2023-03-16 06:42:47 -06:00
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
build_args_from_env:
- CI_COMMIT_SHA
- CI_COMMIT_BRANCH