chore: move to chisel from caddy for better proxy #219
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: PR | |
| on: | |
| pull_request: | |
| workflow_dispatch: | |
| permissions: | |
| id-token: write # This is required for requesting the JWT | |
| contents: write # This is required for actions/checkout | |
| packages: write | |
| pull-requests: write | |
| jobs: | |
| builds: | |
| concurrency: | |
| # Cancel in progress for PR open and close | |
| group: builds-${{ github.event.number || 'latest' }} | |
| cancel-in-progress: true | |
| uses: ./.github/workflows/.builds.yml | |
| with: | |
| tags: | | |
| ${{ github.event.number || 'manual' }} | |
| manual-${{ github.run_number }} | |
| latest | |
| plan-stack: | |
| name: Plan Stack | |
| concurrency: | |
| group: plan-stack-${{ github.event.number || 'latest' }} | |
| cancel-in-progress: false | |
| uses: ./.github/workflows/.deploy_stack.yml | |
| with: | |
| environment_name: tools | |
| command: plan | |
| tag: ${{ github.event.number || 'latest' }} | |
| app_env: ${{ github.event.number || 'latest' }} # ephermal, prefixed for easy clean up of PR resources in s3 and dynamodb generated by terraform | |
| secrets: inherit | |
| lint: | |
| name: Lint | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - uses: actions/cache@v4 | |
| name: Cache plugin dir | |
| with: | |
| path: ~/.tflint.d/plugins | |
| key: ubuntu-tflint-${{ hashFiles('.tflint.hcl') }} | |
| - uses: terraform-linters/setup-tflint@v4 | |
| name: Setup TFLint | |
| with: | |
| tflint_version: v0.52.0 | |
| - name: Show version | |
| run: tflint --version | |
| - name: Init TFLint | |
| run: tflint --init | |
| env: | |
| # https://github.com/terraform-linters/tflint/blob/master/docs/user-guide/plugins.md#avoiding-rate-limiting | |
| GITHUB_TOKEN: ${{ github.token }} | |
| - name: Run TFLint | |
| run: tflint -f compact | |
| # https://github.com/bcgov/quickstart-openshift-helpers | |
| deploys: | |
| name: Deploys (${{ github.event.number }}) | |
| needs: [builds] | |
| uses: ./.github/workflows/.deploy_openshift.yml | |
| secrets: | |
| oc_namespace: ${{ secrets.OC_NAMESPACE }} | |
| oc_token: ${{ secrets.OC_TOKEN }} | |
| with: | |
| db_user: app-${{ github.event.number }} | |
| params: --set global.secrets.persist=false | |
| triggers: ('backend/' 'frontend/' 'charts/' '.github/workflows/.deployer.yml') | |
| db_triggers: ('charts/crunchy/') | |
| deploy-to-tools: | |
| name: Deploy to Tools | |
| needs: builds | |
| if: (github.event_name == 'workflow_dispatch') | |
| concurrency: | |
| group: deploy-tools-${{ github.event.number || 'latest' }} | |
| cancel-in-progress: false | |
| uses: ./.github/workflows/.deploy_stack.yml | |
| with: | |
| environment_name: tools | |
| command: apply | |
| tag: manual-${{ github.run_number }} | |
| app_env: tools | |
| secrets: inherit |