Skip to content

Commit

Permalink
Check no-content urls. Refactoring.
Browse files Browse the repository at this point in the history
  • Loading branch information
doiftrue committed Sep 29, 2023
1 parent cc91dd0 commit 9d66961
Show file tree
Hide file tree
Showing 14 changed files with 183 additions and 2,578 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/update-repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- run: composer install --no-interaction --no-dev
- name: Update packages.json repo file
run: |
php update.php
php run.php update
if [ $? -eq 0 ]; then
if git status | grep -q "nothing to commit"; then
Expand Down
19 changes: 14 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,23 @@
container=WP_COMPOSER_REPO_php
image=wp_composer_repo_php

# scripts

update_repo:
-docker stop $(container) && sleep 1
docker run --rm -it --name $(container) -v ./:/var/www/app $(image) php run.php update

check_urls:
-docker stop $(container) && sleep 1
docker run --rm -it --name $(container) -v ./:/var/www/app $(image) php run.php check

# docker

build:
docker build --tag $(image) .

generate:
docker run --rm -d -v ./:/var/www/app --name $(container) $(image) php update.php

run:
docker run --rm -d -v ./:/var/www/app --name $(container) $(image) sleep infinity
run_container:
docker run --rm -d --name $(container) -v ./:/var/www/app $(image) sleep infinity
make connect

connect:
Expand Down
Loading

0 comments on commit 9d66961

Please sign in to comment.