Skip to content

Commit

Permalink
put the whole thing in hostid var
Browse files Browse the repository at this point in the history
  • Loading branch information
dtinth committed Sep 18, 2024
1 parent 3f37eea commit 46a49bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ runs:
- name: Start netdata
id: netdata
run: |
hostid=$(openssl rand -hex 4)
hostid="gha${{ github.repository_id }}-${{ github.run_id }}-${{ github.run_attempt }}-$(openssl rand -hex 4)"
echo "hostid=$hostid" | tee -a "$GITHUB_OUTPUT"
docker run -d --rm \
--name netdata \
--hostname gha${{ github.repository_id }}-${{ github.run_id }}-${{ github.run_attempt }}-$hostid \
--hostname "$hostid" \
--pid host \
--network host \
--cap-add SYS_PTRACE \
Expand Down

0 comments on commit 46a49bc

Please sign in to comment.