Skip to content

Commit

Permalink
Merge pull request #35 from dominant-strategies/compose-tests
Browse files Browse the repository at this point in the history
add docker-compose
  • Loading branch information
robertlincecum authored Aug 30, 2024
2 parents 56dbd77 + 56e522a commit bfa5dae
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/build-deploy-js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ on:
required: false
type: boolean
default: true
needs_docker_compose:
required: false
type: boolean
default: false

secrets:
GH_PAT:
Expand Down Expand Up @@ -160,6 +164,12 @@ jobs:
if: ${{ inputs.include_chart }}
run: yq eval -i ".${{ env.CAMEL_CASE_REPO_NAME }}.image.version=\"${{ env.VERSION }}\"" ./helm/values.yaml

- name: Set up Docker Compose
if: ${{ inputs.needs_docker_compose }}
run: |
curl -L "https://github.com/docker/compose/releases/download/v2.10.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
- name: Install Dependencies
if: ${{ inputs.install_command }}
run: ${{ inputs.install_command }}
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/build-deploy-ts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ on:
required: false
type: boolean
default: true
needs_docker_compose:
required: false
type: boolean
default: false

secrets:
GH_PAT:
Expand Down Expand Up @@ -159,6 +163,12 @@ jobs:
if: ${{ inputs.include_chart }}
run: yq eval -i ".${{ env.CAMEL_CASE_REPO_NAME }}.image.version=\"${{ env.VERSION }}\"" ./helm/values.yaml

- name: Set up Docker Compose
if: ${{ inputs.needs_docker_compose }}
run: |
curl -L "https://github.com/docker/compose/releases/download/v2.10.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
- name: Install Dependencies
if: ${{ inputs.install_command }}
run: ${{ inputs.install_command }}
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/cut-release-common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ on:
required: false
type: boolean
default: true
needs_docker_compose:
required: false
type: boolean
default: false
secrets:
GH_PAT:
description: 'needed for github login'
Expand Down Expand Up @@ -550,6 +554,7 @@ jobs:
needs_docker: ${{ inputs.needs_docker }}
build_command: ${{ inputs.build_command }}
include_chart: ${{ inputs.include_chart }}
needs_docker_compose: ${{ inputs.needs_docker_compose }}



Expand Down Expand Up @@ -584,6 +589,7 @@ jobs:
needs_docker: ${{ inputs.needs_docker }}
build_command: ${{ inputs.build_command }}
include_chart: ${{ inputs.include_chart }}
needs_docker_compose: ${{ inputs.needs_docker_compose }}

deployReleaseCandidateGo:
uses: ./.github/workflows/build-deploy-go.yml
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/deploy-dev-common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ on:
required: false
type: string
default: ${{ github.ref }}
needs_docker_compose:
required: false
type: boolean
default: false
secrets:
GH_PAT:
description: 'needed for github login'
Expand Down Expand Up @@ -153,6 +157,7 @@ jobs:
token_secret_name: ${{ inputs.token_secret_name }}
build_command: ${{ inputs.build_command }}
include_chart: ${{ inputs.include_chart }}
needs_docker_compose: ${{ inputs.needs_docker_compose }}

buildDeployDevJS:
needs: detect-language
Expand Down Expand Up @@ -182,6 +187,7 @@ jobs:
token_secret_name: ${{ inputs.token_secret_name }}
build_command: ${{ inputs.build_command }}
include_chart: ${{ inputs.include_chart }}
needs_docker_compose: ${{ inputs.needs_docker_compose }}

buildDeployDevJSPrerelease:
needs: [detect-language, get-branch]
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/deploy-prod-common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ on:
required: false
type: boolean
default: true
needs_docker_compose:
required: false
type: boolean
default: false
secrets:
GH_PAT:
description: 'needed for github login'
Expand Down Expand Up @@ -364,6 +368,7 @@ jobs:
needs_docker: ${{ inputs.needs_docker }}
build_command: ${{ inputs.build_command }}
include_chart: ${{ inputs.include_chart }}
needs_docker_compose: ${{ inputs.needs_docker_compose }}

buildDeploySandboxTS:
needs: [createProdTagTS]
Expand Down Expand Up @@ -393,6 +398,7 @@ jobs:
needs_docker: ${{ inputs.needs_docker }}
build_command: ${{ inputs.build_command }}
include_chart: ${{ inputs.include_chart }}
needs_docker_compose: ${{ inputs.needs_docker_compose }}

buildDeployProdGo:
needs: [createProdTagGo]
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/deploy-sandbox-common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ on:
token_secret_name:
required: false
type: string
needs_docker_compose:
required: false
type: boolean
default: false
secrets:
GH_PAT:
description: 'needed for github login'
Expand Down Expand Up @@ -133,6 +137,7 @@ jobs:
needs_docker: ${{ inputs.needs_docker }}
build_command: ${{ inputs.build_command }}
include_chart: ${{ inputs.include_chart }}
needs_docker_compose: ${{ inputs.needs_docker_compose }}

buildDeploySandboxTS:
needs: detect-language
Expand Down Expand Up @@ -163,6 +168,7 @@ jobs:
needs_docker: ${{ inputs.needs_docker }}
build_command: ${{ inputs.build_command }}
include_chart: ${{ inputs.include_chart }}
needs_docker_compose: ${{ inputs.needs_docker_compose }}

buildDeploySandboxGo:
needs: detect-language
Expand Down

0 comments on commit bfa5dae

Please sign in to comment.