Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: create eswatini instance #6418

Merged
merged 1 commit into from
Jan 23, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/deploy_client-eswatini_all.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# See: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions

name: 'Deploy [Eswatini] All'

permissions:
actions: read
deployments: write

on:
workflow_call:
workflow_dispatch:

jobs:
deploy_portal:
name: 'Build + Deploy: Portal'
uses: ./.github/workflows/deploy_client-eswatini_portal.yml
secrets:
AZURE_STATIC_WEB_APPS_API_TOKEN_PORTAL: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_PORTAL }}

deploy_service:
name: 'Build + Deploy: 121-Service'
uses: ./.github/workflows/deploy_client-eswatini_service.yml
secrets:
AZURE_WEBAPP_PUBLISH_PROFILE: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
77 changes: 77 additions & 0 deletions .github/workflows/deploy_client-eswatini_portal.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# See: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions

name: 'Deploy [Eswatini] Interface: Portal'

env:
workingDirectory: interfaces/Portalicious

permissions:
actions: read
deployments: write

on:
workflow_call:
secrets:
AZURE_STATIC_WEB_APPS_API_TOKEN_PORTAL:
required: true
workflow_dispatch:

jobs:
build_and_deploy:
name: Build and Deploy Job
runs-on: ubuntu-latest
environment: 'client-eswatini'
env:
NG_ENV_NAME: ${{ vars.NG_ENV_NAME }}
NG_LOCALES: ${{ vars.NG_LOCALES }}
NG_DEFAULT_LOCALE: ${{ vars.NG_DEFAULT_LOCALE }}
NG_URL_121_SERVICE_API: ${{ vars.NG_URL_121_SERVICE_API }}
USE_IN_TWILIO_FLEX_IFRAME: ${{ vars.USE_IN_TWILIO_FLEX_IFRAME }}
USE_POWERBI_DASHBOARDS: ${{ vars.USE_POWERBI_DASHBOARDS }}
USE_SSO_AZURE_ENTRA: ${{ vars.USE_SSO_AZURE_ENTRA }}
AZURE_ENTRA_CLIENT_ID: ${{ vars.AZURE_ENTRA_CLIENT_ID }}
AZURE_ENTRA_TENANT_ID: ${{ vars.AZURE_ENTRA_TENANT_ID }}
AZURE_ENTRA_URL: ${{ vars.AZURE_ENTRA_URL }}
APPLICATIONINSIGHTS_CONNECTION_STRING: ${{ vars.APPLICATIONINSIGHTS_CONNECTION_STRING }}

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Build Interface
id: build
uses: ./.github/actions/build-interface
with:
interfacePath: ${{ env.workingDirectory }}
envIcon: 'UklGRvwKAABXRUJQVlA4TPAKAAAvKwE0AJX4///PsCP//zp2spNxZjX22rvjtW3btm3btm17bHvyHCWZzAbn5A9InZOq6q7q/PZ89OlH8zQi+j8Bbf9PfnLZN8/eevEFWct4zgvCTo3gmaM2zctRUjrRZsYzQSdF40tj8pGi4WQaOx/W3NoTqRu3Op0LTY/1RqauH3QiTNoNme86sbOg5dEK5LD8kZZOgfpTc5FL33Y7Af63F3KbrdV94SjkePdQ560fj1wb63Vd83HI+TFNOi55dy5v/p2hfvupFLm3ftRt7ghU4bA6vXajosobdNqCCnXE83VZ8gxU6WmhHltUopZiV49djaq9Qof910c9vTfqr89RxZ/qr9PVZOuucDM1RaHemo+qnqO3XlPXy3rrSnVdprcOVddBems7dW2ttzZXV6S3uqirQm+VqatIb1Wqq1Rv9VRXV701RF0D9dY4dY3RW4G6TtFbD6rrPt3QMPHpiw4avce+mbu+q2Xys7p+YBJ+lznZ2mO0ff6TExskJ2lf2DdfSd3t4E830rNK1FTcSM/6xHMwtdE3skO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GZ3N5ec2XE/81XvxnNGFaF+RkXjXKCVYbnGA4VQMad0JOmnZHWUE/4AR3alRd8grk5foceXFCXtBKqu2LPF6+LUR5QTfkJfpCZStrkJNVfVFmsK/PCdasVFVif+Sk9UiUGwxtTnD/hJoeRl6ezJUd/0le8GEV/VPGy+QuKDsYBryUxaqp20rhpG4nRX7Qq+MER9apJHmOwkniUpQhvNTjBMOkOt4v4OWjQjlyP+Ql/z1V1A9EThZvhnKE1iJOcKCrhqzDSdOBKEtoBpw4WTVMUDi535En535OcIIK1nXj5M9ylCcMLE6ciL9phXysH4EyhY7BR9F0/v7I4SI8E+UKzZALx+Lvnzwu3s6VLf9tLqJ/+VtUzsPCapQtrF7IQ8Ui/loHctAyCuULR5kcDGrlDy6k12dNiptRxtBP4UT0LgIVTiymlf8ykH9y5cwNSWAbtOKJaoCTaJ2cIK3ur8gZeqtJiVNoxaDKlf3pDFkNxNbjFFnDyCbAap/OgJXqgH9raBR9D+Rn8+QtMkhgFtGomQhqnbY1hdOBbFejvGG1TYIzKGwzvU29dbf06EjVUlLDbihzuGsDyavqSHhrHai69pXTzOHD0rwRiMkrcuTOsUIC3GikOdz0XqkF9Sebm9JMkL4vVuQOY5PkBWk2h6DR/+2CsoexRxDi+7ny50fCSIxH+cMJnijmluoBa54onkE9gM+K4mR9cIogwh30wY6hGDb01Qd9IzGs7a0PXF8QvfRBL0E0bKkP4gYxeNvqA9cTAxylDwwQ5EP6IBTF5EI94AaiaLH0gGWKAp7SAw4Ic31/+RtgiANez5U93wSBthwue0e0igRqh8mdEYJYZ28uc64DonUGy9tAp028Kw/JlTP/4BUg4ubsZjLmvtgCgl73wIgCuSpw7AgE3vzHbQcMtXrSP/VB4Z5m0LfCGP9sBuGb9WtWUz9SEW64mrrjmiC7x4vHAInvXDmuU+Uk8QQyd7N4fJmbUSKazEyZg8cKxFLwBMj9twduWSPM+KAQ/p95'
envIconPath: 'src/assets/favicon.ico'
envContentSecurityPolicy: '' # Not used for Portalicious, the `build:deployment-configuration`-script is used.

# More information on Static Web App workflow configurations,
# See: https://aka.ms/swaworkflowconfig
- name: Deploy to Azure Static Web App
id: deploy_to_aswa
uses: Azure/static-web-apps-deploy@v1
env:
SKIP_DEPLOY_ON_MISSING_SECRETS: true
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_PORTAL }}
repo_token: ${{ secrets.GITHUB_TOKEN }}
action: 'upload'
config_file_location: '${{ env.workingDirectory }}/'
app_location: '${{ env.workingDirectory }}/www'
output_location: ''
skip_app_build: true
skip_api_build: true

- name: Verify Deployment
if: steps.deploy_to_aswa.outputs.static_web_app_url != ''
working-directory: ${{ env.workingDirectory }}
run: |
npm run verify:deployment-configuration -- --url=${{ steps.deploy_to_aswa.outputs.static_web_app_url }}

- name: Finish
run: |
echo "Build version: ${{ steps.build.outputs.build_version }}" >> $GITHUB_STEP_SUMMARY
echo "Preview: <${{ steps.deploy_to_aswa.outputs.static_web_app_url }}>" >> $GITHUB_STEP_SUMMARY
54 changes: 54 additions & 0 deletions .github/workflows/deploy_client-eswatini_service.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
# Also, see: https://github.com/Azure/actions-workflow-samples

name: 'Deploy [Eswatini] 121-service'

env:
AZURE_WEBAPP_NAME: '121-eswatini'
AZURE_WEBAPP_PACKAGE_PATH: services/121-service

defaults:
run:
working-directory: services/121-service

permissions:
actions: read

on:
workflow_call:
secrets:
AZURE_WEBAPP_PUBLISH_PROFILE:
required: true
workflow_dispatch:

jobs:
build-and-deploy:
name: Build and Deploy
environment: 'client-eswatini'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Build Service
id: build
uses: ./.github/actions/build-service
with:
downloadDatabaseCertificate: true
servicePath: ${{ env.AZURE_WEBAPP_PACKAGE_PATH }}

- name: Deploy to Azure App Service
id: deploy_to_aas
uses: azure/webapps-deploy@v3
with:
app-name: ${{ env.AZURE_WEBAPP_NAME }}
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
package: '${{ env.AZURE_WEBAPP_PACKAGE_PATH }}/artifact.zip'
type: zip
clean: true

- name: Finish
run: |
echo "Build version: ${{ steps.build.outputs.build_version }}" >> $GITHUB_STEP_SUMMARY
echo "Preview: <${{ steps.deploy_to_aas.outputs.webapp-url }}>" >> $GITHUB_STEP_SUMMARY
Loading