From 56ec0fab0ea1d6869b00cc91143ed333d44d54cd Mon Sep 17 00:00:00 2001 From: George Walker Date: Mon, 22 Jul 2024 16:56:07 -0700 Subject: [PATCH] updated landing page --- ...fa-landing-page-support-prod-nomessage.yml | 69 ++ .../cd-dfa-landing-page-support-prod.yml | 70 ++ .../cd-dfa-landing-page-support-test.yml | 2 +- .../src/html/index.prod-nomessage.html | 804 +++++++++++++++++ landing-page/src/html/index.prod.html | 814 ++++++++++++++++++ 5 files changed, 1758 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/cd-dfa-landing-page-support-prod-nomessage.yml create mode 100644 .github/workflows/cd-dfa-landing-page-support-prod.yml create mode 100644 landing-page/src/html/index.prod-nomessage.html create mode 100644 landing-page/src/html/index.prod.html diff --git a/.github/workflows/cd-dfa-landing-page-support-prod-nomessage.yml b/.github/workflows/cd-dfa-landing-page-support-prod-nomessage.yml new file mode 100644 index 000000000..ade77b4ec --- /dev/null +++ b/.github/workflows/cd-dfa-landing-page-support-prod-nomessage.yml @@ -0,0 +1,69 @@ +#CD pipeline for dfa landing page into the support stream +name: cd-dfa-landing-page-support-prod-nomessage + +on: + workflow_dispatch: + +env: + IMAGE_NAME: dfa-landing-page + WORKING_DIRECTORY: ./landing-page/src + +jobs: + build: + runs-on: ubuntu-latest + if: github.event_name == 'push' + + steps: + - uses: actions/checkout@v3 + + - uses: docker/setup-buildx-action@v2 + id: buildx + with: + install: true + + - name: Log into registry + uses: docker/login-action@v2 + with: + registry: ${{ secrets.DOCKER_SUPPORT_REGISTRY }} + username: ${{ secrets.DOCKER_SUPPORT_USERNAME }} + password: ${{ secrets.DOCKER_SUPPORT_PASSWORD_BUILDER }} + + - name: Set image repository + id: set_image_repository + run: | + # Set image repository and change all uppercase to lowercase + DOCKER_REPOSITORY=$(echo ${{ secrets.DOCKER_SUPPORT_REGISTRY }}/${{ env.IMAGE_NAME }} | tr '[A-Z]' '[a-z]') + echo "::set-output name=docker-repository::$DOCKER_REPOSITORY" + + - name: Pull image + env: + DOCKER_REPOSITORY: ${{ steps.set_image_repository.outputs.docker-repository }} + run: docker pull $DOCKER_REPOSITORY:latest || true + + - name: Bump version and push tag + id: tag_version + uses: mathieudutour/github-tag-action@v6.0 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + tag_prefix: ${{ env.IMAGE_NAME }}=v + fetch_all_tags: true + + - name: Build image + env: + DOCKER_REPOSITORY: ${{ steps.set_image_repository.outputs.docker-repository }} + working-directory: ${{ env.WORKING_DIRECTORY }} + run: | + VERSION=$(echo "${{ steps.tag_version.outputs.new_tag }}" | awk -F=v '{print $NF}') + + echo DOCKER_REPOSITORY=${{ env.DOCKER_REPOSITORY }} + echo VERSION=$VERSION + + + tar -czh . | docker build --load --tag ${{ env.DOCKER_REPOSITORY }}:latest --cache-from=${{ env.DOCKER_REPOSITORY }}:latest --build-arg VERSION=$VERSION - + docker tag ${{ env.DOCKER_REPOSITORY }}:latest ${{ env.DOCKER_REPOSITORY }}:$VERSION + + - name: Push image + env: + DOCKER_REPOSITORY: ${{ steps.set_image_repository.outputs.docker-repository }} + run: | + docker push --all-tags ${{ env.DOCKER_REPOSITORY }} \ No newline at end of file diff --git a/.github/workflows/cd-dfa-landing-page-support-prod.yml b/.github/workflows/cd-dfa-landing-page-support-prod.yml new file mode 100644 index 000000000..e558ab247 --- /dev/null +++ b/.github/workflows/cd-dfa-landing-page-support-prod.yml @@ -0,0 +1,70 @@ +#CD pipeline for dfa landing page into the support stream +name: cd-dfa-landing-page-support-prod + +on: + workflow_dispatch: + +env: + IMAGE_NAME: dfa-landing-page + WORKING_DIRECTORY: ./landing-page/src + +jobs: + build: + runs-on: ubuntu-latest + if: github.event_name == 'push' + + steps: + - uses: actions/checkout@v3 + + - uses: docker/setup-buildx-action@v2 + id: buildx + with: + install: true + + - name: Log into registry + uses: docker/login-action@v2 + with: + registry: ${{ secrets.DOCKER_SUPPORT_REGISTRY }} + username: ${{ secrets.DOCKER_SUPPORT_USERNAME }} + password: ${{ secrets.DOCKER_SUPPORT_PASSWORD_BUILDER }} + + - name: Set image repository + id: set_image_repository + run: | + # Set image repository and change all uppercase to lowercase + DOCKER_REPOSITORY=$(echo ${{ secrets.DOCKER_SUPPORT_REGISTRY }}/${{ env.IMAGE_NAME }} | tr '[A-Z]' '[a-z]') + echo "::set-output name=docker-repository::$DOCKER_REPOSITORY" + + - name: Pull image + env: + DOCKER_REPOSITORY: ${{ steps.set_image_repository.outputs.docker-repository }} + run: docker pull $DOCKER_REPOSITORY:latest || true + + - name: Bump version and push tag + id: tag_version + uses: mathieudutour/github-tag-action@v6.0 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + tag_prefix: ${{ env.IMAGE_NAME }}=v + fetch_all_tags: true + + - name: Build image + env: + DOCKER_REPOSITORY: ${{ steps.set_image_repository.outputs.docker-repository }} + working-directory: ${{ env.WORKING_DIRECTORY }} + run: | + VERSION=$(echo "${{ steps.tag_version.outputs.new_tag }}" | awk -F=v '{print $NF}') + + echo DOCKER_REPOSITORY=${{ env.DOCKER_REPOSITORY }} + echo VERSION=$VERSION + + copy html/index.prod html/index.html + + tar -czh . | docker build --load --tag ${{ env.DOCKER_REPOSITORY }}:prod --build-arg VERSION=$VERSION - + docker tag ${{ env.DOCKER_REPOSITORY }}:prod ${{ env.DOCKER_REPOSITORY }}:$VERSION + + - name: Push image + env: + DOCKER_REPOSITORY: ${{ steps.set_image_repository.outputs.docker-repository }} + run: | + docker push --all-tags ${{ env.DOCKER_REPOSITORY }} \ No newline at end of file diff --git a/.github/workflows/cd-dfa-landing-page-support-test.yml b/.github/workflows/cd-dfa-landing-page-support-test.yml index 256291508..c042e5b5a 100644 --- a/.github/workflows/cd-dfa-landing-page-support-test.yml +++ b/.github/workflows/cd-dfa-landing-page-support-test.yml @@ -1,5 +1,5 @@ #CD pipeline for dfa landing page into the support stream -name: cd-dfa-landing-page-support +name: cd-dfa-landing-page-support-test on: workflow_dispatch: diff --git a/landing-page/src/html/index.prod-nomessage.html b/landing-page/src/html/index.prod-nomessage.html new file mode 100644 index 000000000..ddc90fd8a --- /dev/null +++ b/landing-page/src/html/index.prod-nomessage.html @@ -0,0 +1,804 @@ + + + + + + + + + EMCR Disaster Financial Assistance (DFA) + + + + + + + + + +
+
+
+
+
+

Disaster Financial Assistance (DFA)

+

After a disaster, the provincial government may declare the event eligible for Disaster Financial Assistance (DFA). Once declared, the DFA program may provide applicants with financial assistance to restore uninsurable losses that are essential to your home, livelihood or community service.

+

Learn more >

+
+
+
+
+ + + + + +
+ +
+
+
+ DFA User Illustration +
+
+

What is DFA?

+

Disaster events can be stressful, please refer to our disaster recovery resources to help guide your next steps to recovery

+ Find out more > +
+
+
+
+
+
+
+

Register with DFA

+

If you have a BC Services Card and there is a declared disaster event you can now self-register for DFA

+ Create Profile + Already registered? Log in > +
+
+ Umbrella Illustration +
+
+
+ +
+
+
+ Phone Illustration +
+
+

Contact Us

+

For questions or more information, contact the Disaster Financial Assistance team
+ toll-free at 1-888-257-4777 or by email at DFA.Private@gov.bc.ca for individuals, small +
businesses, charitable organizations, and farms or DFA.Public@gov.bc.ca for local +
governments and Indigenous Governing Bodies. +

Send DFA Technical Support inquiries here.

+
+
+
+
+ + + + + diff --git a/landing-page/src/html/index.prod.html b/landing-page/src/html/index.prod.html new file mode 100644 index 000000000..1f1891300 --- /dev/null +++ b/landing-page/src/html/index.prod.html @@ -0,0 +1,814 @@ + + + + + + + + + EMCR Disaster Financial Assistance (DFA) + + + + + + + + + +
+
+
+
+
+

Disaster Financial Assistance (DFA)

+

After a disaster, the provincial government may declare the event eligible for Disaster Financial Assistance (DFA). Once declared, the DFA program may provide applicants with financial assistance to restore uninsurable losses that are essential to your home, livelihood or community service.

+

Learn more >

+
+
+
+
+ +
+
+
+ PLANNED OUTAGE ALERT! - There is a scheduled system outage of the Disaster Financial Assistance portal from Tuesday July 23 at 7:00 a.m. to Tuesday July 23 at 8:00 a.m. which will disrupt our services and access to the portal. +
+ We apologize for any inconvenience caused and thank you for your patience +
+
+
+
+ + + + +
+ +
+
+
+ DFA User Illustration +
+
+

What is DFA?

+

Disaster events can be stressful, please refer to our disaster recovery resources to help guide your next steps to recovery

+ Find out more > +
+
+
+
+
+
+
+

Register with DFA

+

If you have a BC Services Card and there is a declared disaster event you can now self-register for DFA

+ Create Profile + Already registered? Log in > +
+
+ Umbrella Illustration +
+
+
+ +
+
+
+ Phone Illustration +
+
+

Contact Us

+

For questions or more information, contact the Disaster Financial Assistance team
+ toll-free at 1-888-257-4777 or by email at DFA.Private@gov.bc.ca for individuals, small +
businesses, charitable organizations, and farms or DFA.Public@gov.bc.ca for local +
governments and Indigenous Governing Bodies. +

Send DFA Technical Support inquiries here.

+
+
+
+
+ + + + +