Remove local project nesting entries from .gitignore #67
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Cloud Foundry | |
| on: | |
| workflow_call: | |
| inputs: | |
| environment: | |
| default: Staging | |
| type: string | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| deployments: write | |
| concurrency: | |
| group: cf-${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| env: | |
| APP_NAME: samples | |
| FORCE_COLOR: true | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| submodules: true | |
| - uses: actions/setup-node@v5 | |
| with: | |
| node-version: 22 | |
| - uses: cap-js/cf-setup@v1 | |
| with: | |
| cf-api: ${{ vars.CF_API }} | |
| cf-org: ${{ vars.CF_ORG }} | |
| cf-space: ${{ vars.CF_SPACE }} | |
| cf-username: ${{ vars.CF_USERNAME }} | |
| cf-password: ${{ secrets.CF_PASSWORD }} | |
| - run: npm install | |
| - run: npx cds up | |
| - run: cf logs ${{ env.APP_NAME }} --recent | |
| if: always() | |
| - run: cf logs orders-srv --recent | |
| if: always() | |
| - run: cf logs reviews-srv --recent | |
| if: always() | |
| - run: cf logs bookstore-srv --recent | |
| if: always() | |
| - run: cf logs ${{ env.APP_NAME }}-db-deployer --recent | |
| if: always() | |
| - name: Get application URL | |
| id: route | |
| shell: bash | |
| run: | | |
| host=$(cf app "${APP_NAME}" | awk '/routes:/ {print $2}' | sed -E 's#^https?://##; s/,.*$//') | |
| echo "url=https://$host" >> "$GITHUB_OUTPUT" | |
| environment: | |
| name: ${{ inputs.environment || 'Staging' }} | |
| url: ${{ steps.route.outputs.url }} |