Skip to content

Commit

Permalink
Use docker compose (with space)
Browse files Browse the repository at this point in the history
  • Loading branch information
PatelUtkarsh committed Nov 13, 2024
1 parent b4d2b68 commit a273767
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build images
run: docker-compose build
run: docker compose build

- name: Publish images
if: github.ref_name == 'master'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}

- name: Pull custom Docker images
run: docker-compose pull wordpress mkcert
run: docker compose pull wordpress mkcert

- name: Install Node dependencies
run: npm install --ignore-scripts
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ before_install:

install:
- echo "$DOCKER_PASSWORD" | docker login ghcr.io -u "$DOCKER_USERNAME" --password-stdin || true
- docker-compose pull wordpress mkcert || true
- docker compose pull wordpress mkcert || true
- npm install

script:
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
"release": "composer release",
"clean": "rm -rf node_modules plugins/vendor local/public/wp",
"vip": "vip @devgo-vip",
"cli": "docker-compose run --rm --user=1000 --workdir=/var/www/html wordpress",
"cli": "docker compose run --rm --user=1000 --workdir=/var/www/html wordpress",
"test": "npm run cli -- composer test --working-dir=wp-content",
"start": "docker-compose up --detach --remove-orphans --build",
"start-debug": "docker-compose up --remove-orphans --build",
"stop": "docker-compose down",
"start": "docker compose up --detach --remove-orphans --build",
"start-debug": "docker compose up --remove-orphans --build",
"stop": "docker compose down",
"stop-all": "docker stop $(docker ps --all --quiet)",
"logs": "docker-compose logs --follow",
"logs": "docker compose logs --follow",
"setup": "npm run cli -- wp core multisite-install",
"deploy-staging": "./local/scripts/deploy.sh [email protected]:wpcomvip/devgo-vip.git develop",
"deploy-production": "./local/scripts/deploy.sh [email protected]:wpcomvip/devgo-vip.git master",
Expand Down

0 comments on commit a273767

Please sign in to comment.