admin-fe/.woodpecker.yml

59 lines
1.4 KiB
YAML
Raw Normal View History

2022-06-17 12:54:54 +00:00
pipeline:
lint:
when:
event:
- push
2022-06-17 12:54:54 +00:00
- pull_request
2022-06-17 13:12:16 +00:00
image: node:14
2022-06-17 12:54:54 +00:00
commands:
2022-06-17 13:02:15 +00:00
- git config --global url."https://github.com/".insteadOf git://github.com/
2022-06-17 12:54:54 +00:00
- yarn
- yarn lint
test:
when:
event:
- push
2022-06-17 12:54:54 +00:00
- pull_request
2022-06-17 13:12:16 +00:00
image: node:14
2022-06-17 12:54:54 +00:00
commands:
- apt update
- apt install firefox-esr -y --no-install-recommends
2022-06-17 13:02:15 +00:00
- git config --global url."https://github.com/".insteadOf git://github.com/
- yarn
2022-06-17 12:54:54 +00:00
- yarn test
build:
when:
event:
2022-06-27 11:27:46 +00:00
- push
branch:
2022-07-15 10:49:58 +00:00
- develop
- stable
2022-06-17 13:12:16 +00:00
image: node:14
2022-06-17 12:54:54 +00:00
commands:
2022-06-17 12:58:47 +00:00
- git config --global url."https://github.com/".insteadOf git://github.com/
2022-06-17 13:02:15 +00:00
- yarn
2022-06-17 12:54:54 +00:00
- yarn build:prod
release:
when:
event:
2022-06-27 11:27:46 +00:00
- push
branch:
2022-07-15 10:49:58 +00:00
- develop
- stable
2022-06-17 13:24:42 +00:00
image: node:16
2022-06-17 12:54:54 +00:00
secrets:
- SCW_ACCESS_KEY
- SCW_SECRET_KEY
- SCW_DEFAULT_ORGANIZATION_ID
commands:
- apt-get update && apt-get install -y rclone wget zip
- wget https://github.com/scaleway/scaleway-cli/releases/download/v2.5.1/scaleway-cli_2.5.1_linux_amd64
- mv scaleway-cli_2.5.1_linux_amd64 scaleway-cli
- chmod +x scaleway-cli
- ./scaleway-cli object config install type=rclone
- zip admin-fe.zip -r dist
2022-07-15 10:46:02 +00:00
- rclone copyto admin-fe.zip scaleway:akkoma-updates/frontend/$CI_COMMIT_BRANCH/admin-fe.zip