Examples refactoring. #5
This file contains 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: examplesCI | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
examples-check-compose-files: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Checking examples/port-scan/docker-compose.yml | |
run: docker compose --file ./examples/port-scan/docker-compose.yml config -q | |
- name: Checking examples/ssh-brute-force/docker-compose.yml | |
run: docker compose --file ./examples/ssh-brute-force/docker-compose.yml config -q | |
examples-container-build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Build Docker image with Dockerfile.guineapig | |
run: docker build ./examples --file ./examples/Dockerfile.guineapig --tag guineapig:$(date +%s) | |
- name: Build Docker image with port-scan/Dockerfile.attacker | |
run: docker build ./examples/port-scan --file ./examples/port-scan/Dockerfile.attacker --tag attacker:$(date +%s) | |
- name: Build Docker image with ssh-brute-force/Dockerfile.attacker | |
run: docker build ./examples/ssh-brute-force --file ./examples/ssh-brute-force/Dockerfile.attacker --tag attacker:$(date +%s) |