Skip to content

Commit

Permalink
Update to Docker Compose V2 (#79)
Browse files Browse the repository at this point in the history
# Update to Docker Compose V2

## ♻️ Current situation & Problem
- Docker builds are failing in
StanfordBDHG/ENGAGE-HF-Web-Frontend#25 due to an
old `docker-compose` command.

## ⚙️ Release Notes 
- Updates the docker compose command to v2 using the docker command.

### Code of Conduct & Contributing Guidelines 

By submitting creating this pull request, you agree to follow our [Code
of
Conduct](https://github.com/StanfordBDHG/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/StanfordBDHG/.github/blob/main/CONTRIBUTING.md):
- [x] I agree to follow the [Code of
Conduct](https://github.com/StanfordBDHG/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/StanfordBDHG/.github/blob/main/CONTRIBUTING.md).

---------

Signed-off-by: Paul Schmiedmayer <[email protected]>
  • Loading branch information
PSchmiedmayer authored Aug 6, 2024
1 parent c548db2 commit 86acc79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker-compose-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ jobs:
run: |
echo "${{ secrets.ENV_FILE }}" > ${{ inputs.workingDirectory }}/.env
- name: Docker compose up
run: docker-compose -f ${{ inputs.workingDirectory }}/${{ inputs.dockerComposeFile }} up -d --build
run: docker compose -f ${{ inputs.workingDirectory }}/${{ inputs.dockerComposeFile }} up -d --build
- name: Run test script
if: inputs.testscript != ''
run: |
sleep 5
sh ${{ inputs.testscript }}
- name: Docker compose down
if: always()
run: docker-compose down
run: docker compose down

0 comments on commit 86acc79

Please sign in to comment.