optimize CI pipeline (run *only* on changes/tags)

feat/vaults
Tomáš Mládek 2021-06-19 12:46:45 +02:00
parent 40104d7fee
commit aba8f54555
1 changed files with 12 additions and 0 deletions

View File

@ -43,6 +43,12 @@ build:backend:
paths: paths:
- target/release/upend - target/release/upend
expire_in: 1 day expire_in: 1 day
only:
changes:
- migrations/**/*
- src/**/*
- Cargo.*
- Makefile
build:frontend: build:frontend:
stage: build stage: build
@ -54,6 +60,10 @@ build:frontend:
paths: paths:
- ui/dist - ui/dist
expire_in: 1 day expire_in: 1 day
only:
changes:
- ui/**/*
- Makefile
test:backend: test:backend:
stage: test stage: test
@ -76,3 +86,5 @@ package:
artifacts: artifacts:
paths: paths:
- ./*.AppImage - ./*.AppImage
only:
- tags