Deploy frontend to authdev2 #743
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 and deploy frontend to Dev | |
| run-name: Deploy frontend to ${{ inputs.environment }} | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| environment: | |
| description: "Environment to run against" | |
| type: environment | |
| required: true | |
| jobs: | |
| # NOTE: | |
| # IF you are testing service down page deployment in dev envs | |
| # THEN while uncommenting this job, also enable feature flag DeployServiceDownPage: "Yes" in template.yaml | |
| # AND override ServiceDownPageRegistry param to env specific settings | |
| # deploy-service-down-page: | |
| # runs-on: ubuntu-latest | |
| # timeout-minutes: 60 | |
| # environment: ${{ inputs.environment }} | |
| # permissions: | |
| # id-token: write | |
| # contents: read | |
| # steps: | |
| # - name: Build and push service down page image | |
| # uses: govuk-one-login/devplatform-upload-action-ecr@3931602236c176dd4ec2c11dceb38002110b5d87 # v1.3.0 | |
| # with: | |
| # role-to-assume-arn: ${{ secrets.GH_ACTIONS_ROLE_ARN }} | |
| # container-sign-kms-key-arn: ${{ secrets.CONTAINER_SIGN_KMS_KEY_ARN }} | |
| # build-and-push-image-only: true | |
| # working-directory: service-down-page-config | |
| # artifact-bucket-name: ${{ secrets.ARTIFACT_SOURCE_BUCKET_NAME }} | |
| # ecr-repo-name: ${{ secrets.SERVICE_DOWN_PAGE_ECR_REPOSITORY }} | |
| deploy-frontend: | |
| # needs: | |
| # - deploy-service-down-page | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 60 | |
| environment: ${{ inputs.environment }} | |
| permissions: | |
| id-token: write | |
| contents: read | |
| steps: | |
| - name: Build, push and deploy frontend | |
| uses: govuk-one-login/devplatform-upload-action-ecr@3931602236c176dd4ec2c11dceb38002110b5d87 # v1.3.0 | |
| with: | |
| role-to-assume-arn: ${{ secrets.GH_ACTIONS_ROLE_ARN }} | |
| container-sign-kms-key-arn: ${{ secrets.CONTAINER_SIGN_KMS_KEY_ARN }} | |
| artifact-bucket-name: ${{ secrets.ARTIFACT_SOURCE_BUCKET_NAME }} | |
| ecr-repo-name: ${{ secrets.FRONTEND_ECR_REPOSITORY }} | |
| template-file: cloudformation/deploy/template.yaml | |
| private-docker-registry: khw46367.live.dynatrace.com | |
| private-docker-login-username: khw46367 | |
| private-docker-login-password: ${{ secrets.DYNATRACE_PAAS_TOKEN }} | |
| build-contexts: | | |
| oneagent_codemodules=docker-image://${{ secrets.DYNATRACE_REGISTRY_NAME}}.live.dynatrace.com/linux/oneagent-codemodules-musl:nodejs |