Skip to content

Commit

Permalink
application startup fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nuwan-samarasinghe committed Sep 16, 2024
1 parent 527a4a4 commit f51fb71
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 7 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/pullpreview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,24 @@ on:
types: [ labeled, unlabeled, synchronize, closed, reopened ]

jobs:
setup:
uses: communitiesuk/funding-service-design-workflows/.github/workflows/determine-jobs.yml@main
with:
environment: ${{ inputs.environment }}

paketo_build:
needs: [ setup ]
permissions:
packages: write
uses: communitiesuk/funding-service-design-workflows/.github/workflows/package.yml@main
with:
version_to_build: sha-${{ github.sha }}
owner: ${{ github.repository_owner }}
application: funding-service-design-fund-application-builder
assets_required: false

deploy:
needs: [ setup, paketo_build ]
permissions:
contents: read # to fetch code (actions/checkout)
deployments: write # to delete deployments
Expand All @@ -23,6 +40,11 @@ jobs:
role-session-name: FUNDING_SERVICE_DESIGN_FUND_APPLICATION_BUILDER_PULLPREVIEW
aws-region: eu-west-2
- uses: actions/checkout@v2

- name: Inject env specific values into docker compose
run: |
yq -i 'services.fab.image = "ghcr.io/communitiesuk/funding-service-design-fund-application-builder:sha-${{ github.sha }}"' docker-compose.pullpreview.yml
- uses: pullpreview/[email protected]
with:
compose_files: docker-compose.pullpreview.yml
Expand Down
9 changes: 2 additions & 7 deletions docker-compose.pullpreview.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
services:
fab:
hostname: fab
build:
context: ../funding-service-design-fund-application-builder
dockerfile: Dockerfile
args:
- USE_DEV_REQUIREMENTS=true
volumes: ['../funding-service-design-fund-application-builder:/app']
container_name: fab
image: ghcr.io/communitiesuk/funding-service-design-form-designer-adapter:latest
command: ["sh", "-c", "python -m flask db upgrade && python -m debugpy --listen 0.0.0.0:5601 -m flask run --no-debugger --host 0.0.0.0 --port 8080"]
ports:
- 8080:8080
Expand Down

0 comments on commit f51fb71

Please sign in to comment.