mirror of
https://github.com/domcyrus/rustnet.git
synced 2026-05-05 11:30:32 -05:00
ci: improve gh actions with path-based triggers
This commit is contained in:
@@ -3,9 +3,26 @@ name: Docker Build and Publish
|
||||
on:
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
paths:
|
||||
- 'src/**'
|
||||
- 'Cargo.toml'
|
||||
- 'Cargo.lock'
|
||||
- 'assets/services'
|
||||
- 'Dockerfile'
|
||||
- 'build.rs'
|
||||
- '.github/workflows/docker.yml'
|
||||
tags: [ "v*.*.*" ]
|
||||
pull_request:
|
||||
branches: [ "main" ]
|
||||
paths:
|
||||
- 'src/**'
|
||||
- 'Cargo.toml'
|
||||
- 'Cargo.lock'
|
||||
- 'assets/services'
|
||||
- 'Dockerfile'
|
||||
- 'build.rs'
|
||||
- '.github/workflows/docker.yml'
|
||||
workflow_dispatch:
|
||||
|
||||
env:
|
||||
REGISTRY: ghcr.io
|
||||
|
||||
@@ -3,8 +3,23 @@ name: Rust
|
||||
on:
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
paths:
|
||||
- 'src/**'
|
||||
- 'Cargo.toml'
|
||||
- 'Cargo.lock'
|
||||
- 'assets/services'
|
||||
- 'build.rs'
|
||||
- '.github/workflows/rust.yml'
|
||||
pull_request:
|
||||
branches: [ "main" ]
|
||||
paths:
|
||||
- 'src/**'
|
||||
- 'Cargo.toml'
|
||||
- 'Cargo.lock'
|
||||
- 'assets/services'
|
||||
- 'build.rs'
|
||||
- '.github/workflows/rust.yml'
|
||||
workflow_dispatch:
|
||||
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
|
||||
Reference in New Issue
Block a user