Skip to content

Commit

Permalink
Switch to docker compose (#311)
Browse files Browse the repository at this point in the history
* Switch to docker compose
  • Loading branch information
ryanwi authored Aug 7, 2024
1 parent c5b1286 commit 0edd15a
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/actions/docker-compose/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,23 +26,19 @@ runs:
username: ${{ env.DOCKERHUB_USERNAME }}
password: ${{ env.DOCKERHUB_TOKEN }}

- uses: KengoTODA/actions-setup-docker-compose@main
with:
version: '2.12.1'

- name: Create default network
if: inputs.CREATE_NETWORK == 'true'
run: docker network create signalwire_freeswitch
shell: bash

- name: Run docker-compose
- name: Run docker compose
if: inputs.RUN_BACKGROUND == 'false'
run: docker-compose -f ${{ inputs.COMPOSE_FILE }} up
run: docker compose -f ${{ inputs.COMPOSE_FILE }} up
shell: bash

- name: Run docker-compose in background
- name: Run docker compose in background
if: inputs.RUN_BACKGROUND == 'true'
run: docker-compose -f ${{ inputs.COMPOSE_FILE }} up -d
run: docker compose -f ${{ inputs.COMPOSE_FILE }} up -d
shell: bash
# - uses: isbang/[email protected]
# if: inputs.RUN_BACKGROUND == 'true'
Expand Down

0 comments on commit 0edd15a

Please sign in to comment.