2 Commits

Author SHA1 Message Date
Patrick Mahnke-Hartmann
0fb3ccd506 tagging on each push 2025-09-19 15:42:19 +02:00
Patrick Mahnke-Hartmann
a6ef23fd69 added git checkout 2025-09-19 15:21:52 +02:00
3 changed files with 7 additions and 9 deletions

View File

@@ -100,6 +100,8 @@ jobs:
outputs:
tag_name: ${{ steps.set_tag.outputs.tag_name }}
steps:
- uses: actions/checkout@v4
- name: Determine next semantic version tag
id: set_tag
run: |
@@ -231,8 +233,8 @@ jobs:
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ secrets.AUTOMATION_USERNAME }}
password: ${{ secrets.AUTOMATION_PASSWORD }}
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build Docker image
uses: docker/build-push-action@v4
@@ -249,7 +251,7 @@ jobs:
tag:
name: Create Tag
needs: [build, set-tag]
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
if: github.event_name == 'push'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
@@ -294,6 +296,4 @@ jobs:
echo "✅ All checks passed!" >> $GITHUB_STEP_SUMMARY
else
echo "❌ Some checks failed. Please review the logs." >> $GITHUB_STEP_SUMMARY
fi
#test
fi

View File

@@ -153,5 +153,3 @@ pub async fn send_metrics(
Ok(())
}
//test

View File

@@ -1,6 +1,6 @@
/// WatcherAgent - A Rust-based system monitoring agent
/// 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 hardware;
pub mod metrics;