Install qstat #5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "debian bookworm docker nagios core CI workflow" | |
| on: | |
| push: | |
| branches: [ test ] | |
| jobs: | |
| debian-bookworm-nagios-job: | |
| name: "nagios core debian bookworm image ubuntu latest" | |
| runs-on: ubuntu-latest | |
| env: | |
| version: "latest" | |
| name: "debian-bookworm/nagios" | |
| dockerdir: "dockerfiles/3" | |
| dockerfile: "Dockerfile.debian.bookworm" | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: "os fingerprinting" | |
| run: | | |
| hostnamectl status | |
| lsb_release -a | |
| lsb_release -d | |
| cat /etc/lsb-release | |
| cat /etc/issue | |
| cat /etc/os-release | |
| sudo apt-get install -y neofetch && neofetch | |
| - name: "docker build nagios base" | |
| run: | | |
| # destroyed afterwards (use --rm ) | |
| # all subsequent Dockerfile commands generate new images and the cache is not used | |
| sudo docker build --no-cache --rm -t ${name}:${version} . --file ${dockerdir}/${dockerfile} | |
| docker image ls | |
| docker image history ${name}:${version} | |
| docker system df -v | |
| docker image inspect ${name}:${version} | |
| - name: "docker scan trivy archlinux base " | |
| run: | | |
| # destroyed afterwards (use --rm ) | |
| # all subsequent Dockerfile commands generate new images and the cache is not used | |
| sudo docker build --no-cache --rm -t ${name}:${version} . --file ${dockerdir}/${dockerfile} | |
| curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/master/contrib/install.sh | sudo sh -s -- -b /usr/local/bin | |
| trivy image ${name}:${version} | |