Skip to content

Commit

Permalink
use docker compose instead of docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
dorian451 committed Nov 5, 2024
1 parent 5153051 commit ee32fd7
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 27 deletions.
40 changes: 20 additions & 20 deletions .github/workflows/prod-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,36 +16,36 @@ jobs:
API_WORKERS: 8

steps:
# - name: Wait for tests to succeed
# uses: lewagon/wait-on-check-action@v1.0.0
# with:
# ref: ${{ github.ref }}
# repo-token: ${{ secrets.GITHUB_TOKEN }}
# check-name: pytest

# - name: Wait for lighthouse tests to succeed
# uses: lewagon/wait-on-check-action@v1.0.0
# with:
# ref: ${{ github.ref }}
# repo-token: ${{ secrets.GITHUB_TOKEN }}
# check-name: 'Lighthouse CI'
# - name: Wait for tests to succeed
# uses: lewagon/wait-on-check-action@v1.0.0
# with:
# ref: ${{ github.ref }}
# repo-token: ${{ secrets.GITHUB_TOKEN }}
# check-name: pytest

# - name: Wait for lighthouse tests to succeed
# uses: lewagon/wait-on-check-action@v1.0.0
# with:
# ref: ${{ github.ref }}
# repo-token: ${{ secrets.GITHUB_TOKEN }}
# check-name: 'Lighthouse CI'

- uses: actions/checkout@v2
with:
ref: master

- name: Build images
run: |
docker-compose -f docker-compose.yml -f docker-compose.production.yml build yacs_api yacs_web
docker compose -f docker-compose.yml -f docker-compose.production.yml build yacs_api yacs_web
- name: Update yacs_api
run: |
docker-compose -f docker-compose.yml -f docker-compose.production.yml stop yacs_api &&
docker-compose -f docker-compose.yml -f docker-compose.production.yml rm -f yacs_api &&
docker-compose -f docker-compose.yml -f docker-compose.production.yml up -d yacs_api
docker compose -f docker-compose.yml -f docker-compose.production.yml stop yacs_api &&
docker compose -f docker-compose.yml -f docker-compose.production.yml rm -f yacs_api &&
docker compose -f docker-compose.yml -f docker-compose.production.yml up -d yacs_api
- name: Update yacs_web
run: |
docker-compose -f docker-compose.yml -f docker-compose.production.yml stop yacs_web &&
docker-compose -f docker-compose.yml -f docker-compose.production.yml rm -f yacs_web &&
docker-compose -f docker-compose.yml -f docker-compose.production.yml up -d yacs_web
docker compose -f docker-compose.yml -f docker-compose.production.yml stop yacs_web &&
docker compose -f docker-compose.yml -f docker-compose.production.yml rm -f yacs_web &&
docker compose -f docker-compose.yml -f docker-compose.production.yml up -d yacs_web
14 changes: 7 additions & 7 deletions .github/workflows/staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@ jobs:

- name: Build images
run: |
docker-compose -f docker-compose.yml -f docker-compose.production.yml build yacs_api yacs_web
docker compose -f docker-compose.yml -f docker-compose.production.yml build yacs_api yacs_web
- name: Update yacs_api
run: |
docker-compose -f docker-compose.yml -f docker-compose.production.yml stop yacs_api &&
docker-compose -f docker-compose.yml -f docker-compose.production.yml rm -f yacs_api &&
docker-compose -f docker-compose.yml -f docker-compose.production.yml up -d yacs_api
docker compose -f docker-compose.yml -f docker-compose.production.yml stop yacs_api &&
docker compose -f docker-compose.yml -f docker-compose.production.yml rm -f yacs_api &&
docker compose -f docker-compose.yml -f docker-compose.production.yml up -d yacs_api
- name: Update yacs_web
run: |
docker-compose -f docker-compose.yml -f docker-compose.production.yml stop yacs_web &&
docker-compose -f docker-compose.yml -f docker-compose.production.yml rm -f yacs_web &&
docker-compose -f docker-compose.yml -f docker-compose.production.yml up -d yacs_web
docker compose -f docker-compose.yml -f docker-compose.production.yml stop yacs_web &&
docker compose -f docker-compose.yml -f docker-compose.production.yml rm -f yacs_web &&
docker compose -f docker-compose.yml -f docker-compose.production.yml up -d yacs_web

0 comments on commit ee32fd7

Please sign in to comment.