optimize CI pipeline (run *only* on changes/tags)
parent
40104d7fee
commit
aba8f54555
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue