Skip to content

✨ Add system usage API endpoint #138

✨ Add system usage API endpoint

✨ Add system usage API endpoint #138

Workflow file for this run

name: Pull Request CI
on:
pull_request:
branches:
- "main"
jobs:
testing:
runs-on:
group: organization/netbox-docker-agent
labels:
- self-hosted
- Linux
- X64
steps:
- name: Start test env
run: |
/usr/local/bin/server.sh start github_ci_netbox_docker_agent
- name: executing remote ssh commands using password
uses: appleboy/[email protected]
env:
HEAD_REF: ${{ github.head_ref }}
with:
host: agent-1.netbox-docker-agent.github-ci.saashup.com
key: ${{ secrets.KEY }}
username: ${{ secrets.USER }}
envs: HEAD_REF
script: |
git clone https://github.com/SaaShup/netbox-docker-agent.git -b $HEAD_REF
cd netbox-docker-agent; docker build -t saashup/netbox-docker-agent .; cd ../
docker network create netbox-docker-agent
docker run -d -p 1880:1880 -v /var/run/docker.sock:/var/run/docker.sock:rw -v netbox-docker-agent:/data --name netbox-docker-agent --network netbox-docker-agent saashup/netbox-docker-agent
sleep 30
cat ./netbox-docker-agent/tests/hurl/tests.hurl | docker run --rm --network netbox-docker-agent -i ghcr.io/orange-opensource/hurl:latest --test --color --variable host=http://netbox-docker-agent:1880 -u admin:saashup
- name: Stop test env
if: ${{ always() }}
run: |
/usr/local/bin/server.sh stop github_ci_netbox_docker_agent