Skip to content

Commit

Permalink
split process into separate steps
Browse files Browse the repository at this point in the history
  • Loading branch information
Rom committed Dec 23, 2023
1 parent 9db8c3e commit 9bc5c34
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Set up Docker
run: sudo service docker start

- name: Run Docker Compose and WPScan
- name: Build DVWP Docker Compose
run: |
docker-compose up -d --build
echo "Waiting for MySQL to be ready..."
Expand All @@ -26,8 +26,12 @@ jobs:
done
echo "MySQL is ready."
docker-compose run --rm wp-cli install-wp
sleep 10
- name: Run WPScan
run: |
docker pull wpscanteam/wpscan
sleep 5
docker run --network dvwp_default wpscanteam/wpscan wpscan --url http://wordpress/ --force
docker-compose down
- name: Cleanup Docker Compose Services
run: docker-compose down

0 comments on commit 9bc5c34

Please sign in to comment.