removed useless if statemnt
This commit is contained in:
15
.github/workflows/build.yml
vendored
15
.github/workflows/build.yml
vendored
@@ -20,8 +20,6 @@ jobs:
|
|||||||
detect-project:
|
detect-project:
|
||||||
name: Detect Rust Project
|
name: Detect Rust Project
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
|
||||||
RUNNER_TOOL_CACHE: /toolcache
|
|
||||||
outputs:
|
outputs:
|
||||||
project-dir: ${{ steps.detect.outputs.project-dir }}
|
project-dir: ${{ steps.detect.outputs.project-dir }}
|
||||||
project-name: ${{ steps.detect.outputs.project-name }}
|
project-name: ${{ steps.detect.outputs.project-name }}
|
||||||
@@ -58,8 +56,6 @@ jobs:
|
|||||||
needs: [detect-project]
|
needs: [detect-project]
|
||||||
if: ${{ !failure() && !cancelled() }}
|
if: ${{ !failure() && !cancelled() }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
|
||||||
RUNNER_TOOL_CACHE: /toolcache
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
@@ -83,8 +79,6 @@ jobs:
|
|||||||
set-tag:
|
set-tag:
|
||||||
name: Set Tag Name
|
name: Set Tag Name
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
|
||||||
RUNNER_TOOL_CACHE: /toolcache
|
|
||||||
outputs:
|
outputs:
|
||||||
tag_name: ${{ steps.set_tag.outputs.tag_name }}
|
tag_name: ${{ steps.set_tag.outputs.tag_name }}
|
||||||
steps:
|
steps:
|
||||||
@@ -145,8 +139,6 @@ jobs:
|
|||||||
needs: [detect-project, test]
|
needs: [detect-project, test]
|
||||||
if: ${{ !failure() && !cancelled() }}
|
if: ${{ !failure() && !cancelled() }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
|
||||||
RUNNER_TOOL_CACHE: /toolcache
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
@@ -206,8 +198,6 @@ jobs:
|
|||||||
needs.build.result == 'success' &&
|
needs.build.result == 'success' &&
|
||||||
github.event_name != 'pull_request'
|
github.event_name != 'pull_request'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
|
||||||
RUNNER_TOOL_CACHE: /toolcache
|
|
||||||
environment: production
|
environment: production
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
@@ -243,12 +233,7 @@ jobs:
|
|||||||
tag:
|
tag:
|
||||||
name: Create Tag
|
name: Create Tag
|
||||||
needs: [docker-build, build, set-tag]
|
needs: [docker-build, build, set-tag]
|
||||||
#if: |
|
|
||||||
# github.event_name == 'push' &&
|
|
||||||
# needs.docker-build.result == 'success'
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
|
||||||
RUNNER_TOOL_CACHE: /toolcache
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
|
@@ -1,5 +1,3 @@
|
|||||||
|
|
||||||
|
|
||||||
/// # Models Module
|
/// # Models Module
|
||||||
///
|
///
|
||||||
/// This module defines all data structures (DTOs) used for communication between WatcherAgent and the backend server, as well as hardware metrics and Docker container info.
|
/// This module defines all data structures (DTOs) used for communication between WatcherAgent and the backend server, as well as hardware metrics and Docker container info.
|
||||||
@@ -194,4 +192,4 @@ pub struct DockerContainer {
|
|||||||
pub _net_in: f64,
|
pub _net_in: f64,
|
||||||
pub _net_out: f64,
|
pub _net_out: f64,
|
||||||
pub _cpu_load: f64,
|
pub _cpu_load: f64,
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user