build: optimise pipeline runs (#7)
Reviewed-on: https://git.vdx.hu/voidcontext/woodpecker-plugin-nix-attic/pulls/7 Co-authored-by: Gabor Pihaj <gabor.pihaj@gmail.com> Co-committed-by: Gabor Pihaj <gabor.pihaj@gmail.com>
This commit is contained in:
parent
64a5943b23
commit
a68dcbc4db
2 changed files with 10 additions and 4 deletions
|
@ -5,11 +5,17 @@ variables:
|
||||||
binary_cache_token:
|
binary_cache_token:
|
||||||
from_secret: attic_token
|
from_secret: attic_token
|
||||||
|
|
||||||
|
when:
|
||||||
|
- event: pull_request
|
||||||
|
- event: push
|
||||||
|
branch: main
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
build:
|
build:
|
||||||
when:
|
when:
|
||||||
- event: push
|
|
||||||
- event: pull_request
|
- event: pull_request
|
||||||
|
- event: push
|
||||||
|
branch: main
|
||||||
image: git.vdx.hu/voidcontext/woodpecker-plugin-nix-attic
|
image: git.vdx.hu/voidcontext/woodpecker-plugin-nix-attic
|
||||||
settings:
|
settings:
|
||||||
<<: *common_settings
|
<<: *common_settings
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
- common_settings: &common_settings
|
- common_settings: &common_settings
|
||||||
binary_cache: https://cache.nix.vdx.hu/private
|
binary_cache: https://cache.nix.vdx.hu/private
|
||||||
|
@ -6,10 +5,11 @@ variables:
|
||||||
binary_cache_token:
|
binary_cache_token:
|
||||||
from_secret: attic_token
|
from_secret: attic_token
|
||||||
|
|
||||||
steps:
|
|
||||||
release:
|
|
||||||
when:
|
when:
|
||||||
- event: tag
|
- event: tag
|
||||||
|
|
||||||
|
steps:
|
||||||
|
release:
|
||||||
image: git.vdx.hu/voidcontext/woodpecker-plugin-nix-attic
|
image: git.vdx.hu/voidcontext/woodpecker-plugin-nix-attic
|
||||||
settings:
|
settings:
|
||||||
<<: *common_settings
|
<<: *common_settings
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue