Compare commits
6 Commits
developmen
...
main
Author | SHA1 | Date | |
---|---|---|---|
4a2f7d15ce | |||
409657a879 | |||
2a1471a380 | |||
c16547628a | |||
![]() |
6dc9972f2f | ||
![]() |
6a2d462ec7 |
10
.github/workflows/build.yml
vendored
10
.github/workflows/build.yml
vendored
@@ -100,8 +100,6 @@ jobs:
|
|||||||
outputs:
|
outputs:
|
||||||
tag_name: ${{ steps.set_tag.outputs.tag_name }}
|
tag_name: ${{ steps.set_tag.outputs.tag_name }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Determine next semantic version tag
|
- name: Determine next semantic version tag
|
||||||
id: set_tag
|
id: set_tag
|
||||||
run: |
|
run: |
|
||||||
@@ -233,8 +231,8 @@ jobs:
|
|||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
registry: ${{ env.REGISTRY }}
|
registry: ${{ env.REGISTRY }}
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.AUTOMATION_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
password: ${{ secrets.AUTOMATION_PASSWORD }}
|
||||||
|
|
||||||
- name: Build Docker image
|
- name: Build Docker image
|
||||||
uses: docker/build-push-action@v4
|
uses: docker/build-push-action@v4
|
||||||
@@ -251,7 +249,7 @@ jobs:
|
|||||||
tag:
|
tag:
|
||||||
name: Create Tag
|
name: Create Tag
|
||||||
needs: [build, set-tag]
|
needs: [build, set-tag]
|
||||||
if: github.event_name == 'push'
|
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
@@ -297,3 +295,5 @@ jobs:
|
|||||||
else
|
else
|
||||||
echo "❌ Some checks failed. Please review the logs." >> $GITHUB_STEP_SUMMARY
|
echo "❌ Some checks failed. Please review the logs." >> $GITHUB_STEP_SUMMARY
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
#test
|
@@ -153,3 +153,5 @@ pub async fn send_metrics(
|
|||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//test
|
@@ -1,6 +1,6 @@
|
|||||||
/// WatcherAgent - A Rust-based system monitoring agent
|
/// WatcherAgent - A Rust-based system monitoring agent
|
||||||
/// This agent collects hardware metrics and sends them to a backend server.
|
/// This agent collects hardware metrics and sends them to a backend server.
|
||||||
/// It supports CPU, GPU, RAM, disk, and network metrics.
|
/// It supports CPU, GPU, RAM, disk and network metrics.
|
||||||
pub mod api;
|
pub mod api;
|
||||||
pub mod hardware;
|
pub mod hardware;
|
||||||
pub mod metrics;
|
pub mod metrics;
|
||||||
|
Reference in New Issue
Block a user