bugfix: add dev environment allowed host #18
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: "Build, Test and Release" | |
| on: | |
| pull_request: | |
| push: | |
| branches: ["main"] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: write | |
| id-token: write | |
| actions: read | |
| pull-requests: write | |
| jobs: | |
| prepare-release-tag: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| outputs: | |
| release_tag: ${{ steps.export.outputs.release_tag }} | |
| steps: | |
| - name: Checkout repository | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 | |
| - name: Bump tag | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
| id: bump | |
| uses: ukhsa-collaboration/devops-github-actions/.github/actions/github-bump-tag@52f31c5544ee5204dd0e169728c595b6a402205f | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| WITH_V: true | |
| - name: Export release tag | |
| id: export | |
| run: echo "release_tag=${{ steps.bump.outputs.new_tag }}" >> "$GITHUB_OUTPUT" | |
| container-image: | |
| name: Build, Test and Release | |
| needs: prepare-release-tag | |
| permissions: | |
| contents: write | |
| id-token: write | |
| actions: read | |
| pull-requests: write | |
| uses: ukhsa-collaboration/devops-github-reusable-workflows/.github/workflows/container-image-build-python-aws-ecs.yml@0142fab71a3dd1c72ed470621cafb2c9db484f35 | |
| with: | |
| app_name: ${{ vars.APP_NAME }} | |
| service_identifier: ${{ vars.ECR_NAMESPACE }} | |
| aws_region: ${{ vars.AWS_REGION }} | |
| run_unit_tests: ${{ vars.RUN_UNIT_TESTS == 'true' }} | |
| push_image: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} | |
| release_tag: ${{ needs.prepare-release-tag.outputs.release_tag }} | |
| sign_release: true | |
| lint_dockerfile: false | |
| enable_trivy: false | |
| fail_on_trivy_findings: false | |
| enable_snyk: false | |
| lint_python: false | |
| deploy_environments: >- | |
| [ | |
| { "name": "dev", "base_url": "https://active10.dev.phedigital.co.uk", "smoke_test_url": "https://active10.dev.phedigital.co.uk/healthcheck" }, | |
| { "name": "uat", "base_url": "https://active10.stg.phedigital.co.uk", "smoke_test_url": "https://active10.stg.phedigital.co.uk/healthcheck" }, | |
| { "name": "prd", "base_url": "https://active10.prod.phedigital.co.uk", "smoke_test_url": "https://active10.prod.phedigital.co.uk/healthcheck" } | |
| ] | |
| secrets: inherit # pragma: allowlist secret |