You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
side_menu/.woodpecker.yml

43 lines
1.1 KiB
YAML

8 months ago
pipeline:
dependencies:
image: deblan/devenv
commands:
- npm install
when:
8 months ago
event: [tag, push, pull_request]
8 months ago
branch: [master, develop, feature/*]
8 months ago
build:
image: deblan/devenv
commands:
- make npm-build
when:
8 months ago
event: [push, pull_request]
8 months ago
8 months ago
package:
8 months ago
image: deblan/devenv
volumes:
- /var/www/html/artifacts:/var/www/html/artifacts
secrets: [app_certificate]
commands:
- mkdir -p "$HOME/.nextcloud/certificates"
- echo "$APP_CERTIFICATE" > "$HOME/.nextcloud/certificates/side_menu.key"
- export VERSION=$(grep "<version>" appinfo/info.xml | grep -o "[0-9]*\.[0-9]*\.[0-9]*" --color=never)
- export RELEASE_DIRECTORY="/var/www/html/artifacts/deblan/side_menu"
- make release
when:
8 months ago
event: [tag]
8 months ago
release:
image: plugins/gitea-release
volumes:
- /var/www/html/artifacts:/var/www/html/artifacts
settings:
api_key:
from_secret: gitnet_api_key
base_url: https://gitnet.fr
note: ${CI_COMMIT_MESSAGE}
8 months ago
files: /var/www/html/artifacts/deblan/side_menu/${CI_COMMIT_TAG/v//}/*
8 months ago
when:
event: [tag]