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 8, 2024
1 parent 8f365ca commit 3fab0a7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 17 deletions.
17 changes: 1 addition & 16 deletions .github/workflows/pullpreview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,7 @@ on:
types: [ labeled, unlabeled, synchronize, closed, reopened ]

jobs:
paketo_build:
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_pullpreview:
needs: [ paketo_build ]
deploy:
permissions:
contents: read # to fetch code (actions/checkout)
deployments: write # to delete deployments
Expand All @@ -27,10 +16,6 @@ jobs:
timeout-minutes: 30
environment: 'dev'
steps:
- name: Inject env specific values into compose
run: |
yq -i '.services.fab.image = "ghcr.io/communitiesuk/funding-service-design-fund-application-builder:sha-${{ github.sha }}"' docker-compose.pullpreview.yml
cat docker-compose.pullpreview.yml
- name: configure aws credentials
uses: aws-actions/configure-aws-credentials@v2
with:
Expand Down
5 changes: 4 additions & 1 deletion docker-compose.pullpreview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
services:
fab:
hostname: fab
image: ghcr.io/communitiesuk/funding-service-design-fund-application-builder:latest
build:
context: .
dockerfile: Dockerfile.pullpreview
command: service postgresql start && /bin/bash -c "python -m flask db upgrade && python -m flask run --no-debugger --host 0.0.0.0 --port 8080"
volumes: [
'../funding-service-design-fund-application-builder:/app',
'../funding-service-design-fund-application-builder/postgresql:/var/lib/postgresql/data',
Expand Down

0 comments on commit 3fab0a7

Please sign in to comment.