Skip to content

Update self-hosted-network-monitoring-hr.yml #2

Update self-hosted-network-monitoring-hr.yml

Update self-hosted-network-monitoring-hr.yml #2

name: "Self-Hosted (VM): Network Monitoring with Harden-Runner"
on:
workflow_dispatch:
push:
jobs:
build:
runs-on: [self-hosted, ec2]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: npm install
run: |
cd ./src/exfiltration-demo
npm install
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@v5
with:
name: ${{ github.repository }}/prod:latest
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: ghcr.io
workdir: ./src/exfiltration-demo