frontend/.drone.yml

275 lines
5.4 KiB
YAML
Raw Normal View History

2019-04-25 18:03:19 +00:00
kind: pipeline
name: testing
2018-09-08 15:44:29 +00:00
2019-04-25 18:03:19 +00:00
trigger:
branch:
include:
2019-04-25 18:03:19 +00:00
- master
event:
include:
- push
- pull_request
2018-09-08 15:44:29 +00:00
2019-04-25 18:03:19 +00:00
steps:
- name: build
image: node:13
2018-09-08 15:44:29 +00:00
pull: true
group: build-static
commands:
2020-06-23 07:18:17 +00:00
- yarn --frozen-lockfile --network-timeout 100000
2019-03-03 21:38:12 +00:00
- yarn run lint
- yarn run build
Better reminders (#308) Fix setting the new reminder component to null after adding a new date Add "close on change" event which only fires if the component closed and the value actually changed Hide the "today" option after 21:00 Add "confirm" button to close the component Use disabled in reminders Add a disabled property to the datepicker Cleanup workarounds for flatpickr Use the new datepicker for end dates Use the new datepicker for start date Use the new datepicker for due dates Mobile styling Format Sync flatpickr when clicking on choose a date Make sure to only hide the popup when not clicked something inside of it Make flatpickr dates work Use datepicker component for reminders Merge branch 'master' into feature/better-reminders Fix bottom padding of inline flatpickr Set time Add method to calculate the neares time Move time helpers in separate folder Remove separate flatpickr date Cleanup Set the flatpickr date when setting changing the date Better formatting of the chosen date Bubble Set date when choosing one Fix test Show correct weekday in preview Change hover background color Make label to show if selected date is null configurable Use a different icon for weekend Ignore test files when linting Add tests to dron Move day interval calculation to separate file and test it Add next date calculation Add basic date picker component Co-authored-by: kolaente <k@knt.li> Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/308 Co-Authored-By: konrad <konrad@kola-entertainments.de> Co-Committed-By: konrad <konrad@kola-entertainments.de>
2020-11-28 13:59:27 +00:00
- name: test
image: node:13
pull: true
group: build-static
commands:
- yarn test
2019-04-25 18:03:19 +00:00
---
kind: pipeline
name: release-latest
trigger:
branch:
- master
event:
- push
steps:
- name: fetch-tags
image: docker:git
commands:
- git fetch --tags
2019-04-25 18:03:19 +00:00
- name: build
image: node:13
2018-09-08 15:44:29 +00:00
pull: true
2019-04-25 18:03:19 +00:00
group: build-static
2018-09-08 15:44:29 +00:00
commands:
2020-06-23 07:18:17 +00:00
- yarn --frozen-lockfile --network-timeout 100000
2019-04-25 18:03:19 +00:00
- yarn run lint
- "echo '{\"VERSION\": \"'$(git describe --tags --always --abbrev=10 | sed 's/-/+/' | sed 's/^v//' | sed 's/-g/-/')'\"}' > src/version.json"
2019-04-25 18:03:19 +00:00
- yarn run build
2020-05-05 21:34:58 +00:00
- sed -i 's/http\:\\/\\/localhost\\:3456\\/api\\/v1/\\/api\\/v1/g' dist/index.html # Override the default api url used for developing
2019-04-25 18:03:19 +00:00
- name: static
image: kolaente/zip
2018-09-08 15:52:06 +00:00
pull: true
commands:
- cd dist
- zip -r ../vikunja-frontend-master.zip *
- cd ..
2019-04-25 18:05:12 +00:00
depends_on: [ build ]
2018-09-08 15:44:29 +00:00
2019-04-25 18:05:12 +00:00
- name: release
2018-09-08 15:44:29 +00:00
image: plugins/s3:1
pull: true
2019-04-25 18:03:19 +00:00
settings:
2020-07-14 11:45:57 +00:00
bucket: vikunja-releases
2019-04-25 18:03:19 +00:00
access_key:
from_secret: aws_access_key_id
secret_key:
from_secret: aws_secret_access_key
2020-07-14 11:45:57 +00:00
endpoint: https://s3.fr-par.scw.cloud
region: fr-par
2019-04-25 18:03:19 +00:00
path_style: true
source: vikunja-frontend-master.zip
2020-03-01 21:53:40 +00:00
target: /frontend/
2019-04-25 18:05:12 +00:00
depends_on: [ static ]
2019-04-25 18:03:19 +00:00
---
kind: pipeline
name: release-version
2018-09-08 15:44:29 +00:00
2019-04-25 18:03:19 +00:00
trigger:
event:
- tag
steps:
- name: fetch-tags
image: docker:git
commands:
- git fetch --tags
2019-04-25 18:03:19 +00:00
- name: build
image: node:13
2019-04-25 18:03:19 +00:00
pull: true
group: build-static
commands:
2020-06-23 07:18:17 +00:00
- yarn --frozen-lockfile --network-timeout 100000
2019-04-25 18:03:19 +00:00
- yarn run lint
- "echo '{\"VERSION\": \"'$(git describe --tags --always --abbrev=10 | sed 's/-/+/' | sed 's/^v//' | sed 's/-g/-/')'\"}' > src/version.json"
2019-04-25 18:03:19 +00:00
- yarn run build
2020-05-05 21:34:58 +00:00
- sed -i 's/http\:\\/\\/localhost\\:3456\\/api\\/v1/\\/api\\/v1/g' dist/index.html # Override the default api url used for developing
2019-04-25 18:03:19 +00:00
- name: static
image: kolaente/zip
pull: true
commands:
- cd dist
- zip -r ../vikunja-frontend-${DRONE_TAG##v}.zip *
- cd ..
2019-04-25 18:05:12 +00:00
depends_on: [ build ]
2019-04-25 18:03:19 +00:00
2019-04-25 18:05:12 +00:00
- name: release
2018-09-08 15:44:29 +00:00
image: plugins/s3:1
pull: true
2019-04-25 18:03:19 +00:00
settings:
2020-07-14 11:45:57 +00:00
bucket: vikunja-releases
2019-04-25 18:03:19 +00:00
access_key:
from_secret: aws_access_key_id
secret_key:
from_secret: aws_secret_access_key
2020-07-14 11:45:57 +00:00
endpoint: https://s3.fr-par.scw.cloud
region: fr-par
2019-04-25 18:03:19 +00:00
path_style: true
source: vikunja-frontend-${DRONE_TAG##v}.zip
2020-03-01 21:53:40 +00:00
target: /frontend/
2019-04-25 18:05:12 +00:00
depends_on: [ static ]
2018-09-08 15:44:29 +00:00
---
kind: pipeline
name: trigger-desktop-update
trigger:
branch:
- master
event:
- push
depends_on:
- release-latest
steps:
- name: trigger
image: plugins/downstream
settings:
server: https://drone.kolaente.de
token:
from_secret: drone_token
repositories:
- vikunja/desktop@master
---
kind: pipeline
type: docker
name: docker-arm-release
platform:
os: linux
arch: arm
trigger:
2020-06-22 17:13:43 +00:00
ref:
- refs/heads/master
- "refs/tags/**"
steps:
- name: fetch-tags
image: docker:git
commands:
- git fetch --tags
- name: docker
2020-06-22 16:37:09 +00:00
image: plugins/docker:linux-arm
pull: true
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: vikunja/frontend
auto_tag: true
2020-06-22 20:19:53 +00:00
auto_tag_suffix: linux-arm
depends_on: [ fetch-tags ]
---
kind: pipeline
type: docker
name: docker-amd64-release
platform:
os: linux
arch: amd64
trigger:
2020-06-22 17:13:43 +00:00
ref:
- refs/heads/master
- "refs/tags/**"
steps:
- name: fetch-tags
image: docker:git
commands:
- git fetch --tags
- name: docker
image: plugins/docker:linux-amd64
pull: true
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: vikunja/frontend
auto_tag: true
auto_tag_suffix: linux-amd64
depends_on: [ fetch-tags ]
---
kind: pipeline
type: docker
name: docker-manifest
trigger:
ref:
- refs/heads/master
- "refs/tags/**"
depends_on:
2020-06-22 17:13:43 +00:00
- docker-amd64-release
- docker-arm-release
steps:
- name: manifest
pull: always
image: plugins/manifest
settings:
auto_tag: true
ignore_missing: true
spec: docker-manifest.tmpl
password:
from_secret: docker_password
username:
from_secret: docker_username
2020-06-22 17:13:43 +00:00
---
kind: pipeline
type: docker
name: notify
trigger:
ref:
- refs/heads/master
- "refs/tags/**"
depends_on:
- release-version
- release-latest
- docker-manifest
steps:
- name: telegram
2020-07-24 16:31:25 +00:00
image: appleboy/drone-telegram:1-linux-amd64
2020-06-22 17:13:43 +00:00
settings:
token:
from_secret: TELEGRAM_TOKEN
to:
from_secret: TELEGRAM_TO
message: >
{{repo.owner}}/{{repo.name}}: \[{{build.status}}] Build {{build.number}}
{{commit.author}} pushed to {{commit.branch}} {{commit.sha}}: `{{commit.message}}`
Build started at {{datetime build.started "2006-Jan-02T15:04:05Z" "GMT+2"}} finished at {{datetime build.finished "2006-Jan-02T15:04:05Z" "GMT+2"}}.
when:
status:
- success
- failure