Deployment and operations

Production release workflow

The checked-in GitHub Actions workflow Trigger auto deployment for iicnet-production runs on pushes to production and supports manual workflow_dispatch.

Its steps:

  1. Check out the repository.
  2. Authenticate to Azure using azure/login@v2 and GitHub OIDC.
  3. Use azure/container-apps-deploy-action@v2 to build/push an image and deploy to Container App iicnet-production in resource group iicnet.
  4. Tag the image with the Git commit SHA in registry iicacr-fxa3epc5ghdtctgu.azurecr.io.

The workflow expects Azure identity and registry credentials in GitHub Actions secrets. Configure values through the appropriate secret store, not source files. The workflow also contains placeholder-style action inputs; confirm a successful Actions run and the actual image/build behavior before relying on a release.

Image behavior

  • The Dockerfile uses a Composer build stage and a PHP 8.4.27 Apache runtime.
  • It copies the public application, shared private code, Apache/PHP settings, cron schedule, and built Composer dependencies into the image.
  • Composer runs update, not install, with development packages and scripts disabled and platform requirements ignored. Rebuilding the same commit is not guaranteed to resolve identical dependency versions.
  • The entrypoint starts cron and Apache. The workflow does not define a database migration or database restore step.

Settings not provisioned here

The workflow names an existing Azure target but does not define the complete infrastructure. Before deployment, verify in Azure:

  • Database hostname, credentials, connectivity, and schema compatibility.
  • Container environment variables and secret references.
  • Ingress, hostname, TLS, and forwarded-protocol behavior.
  • Azure Files volume configuration and the paths used by the application.
  • Replica count, session-file persistence, and cron execution behavior.
  • Log collection, alerts, and database/file-share backup and restore policies.

Do not assume the commented local MariaDB service describes production.

Images and persistent files

:::important Image source of truth

New images must be added to Azure Storage iicnetstorage, under File shares > iicnetuploads. Images in the iic_net repository are legacy assets, not how application images are served.

:::

Follow the upload instructions, preserving the directory and filename expected by the consuming page.

Upload handlers use application-relative paths, for example uploads/page-banners/ and slides/. The repository does not define how every path maps onto the live share. Check the running Container App’s volume mounts and the affected page before uploading or changing storage configuration. An application image rollback does not roll back file-share contents or data.

Scheduled work and email

The active entry in config/crontab is:

FrequencyAction
Every ten minutesHTTP request to http://localhost/delivermail/send.php

The sender reads queued email and updates queue/log records. Treat invoking it as a real delivery action, not a harmless health check.

Other entries for scheduled-job triggers, Mailgun checks, monthly reporting, database backups, monitoring, and permissions maintenance are commented out. Their presence is not evidence that these tasks run. Check external schedulers and Azure configuration separately.

Because cron starts inside the application container, verify scheduling and duplicate-delivery protection before increasing the replica count. Multiple replicas can each start their own scheduler.

Smoke-test checklist

Use authorized test accounts and non-production data for write operations.

  1. Confirm the deployment run succeeded and the expected commit image is active.
  2. Open the login page; verify sign-in, redirect to an authenticated page, sign-out, and denied access for a signed-out browser.
  3. Open member, office, and search listings; check representative detail pages.
  4. Exercise the changed feature with both an authorized and a restricted account.
  5. Check an existing image and a newly uploaded test image.
  6. For API changes, verify the documented output shape, invalid-input behavior, and access requirements on the specific endpoint.
  7. Test email only with controlled recipients and queues; inspect delivery logs.
  8. Review application/container logs for PHP errors and database failures.

These are manual checks, not a claim that the repository includes an automated end-to-end suite.

Troubleshooting

SymptomChecks
Database connection failureContainer environment values, database network access, user grants, and SSL compatibility; legacy MySQLi connects on port 3306
Missing homepage or other tables/viewsCorrect database selected and full initialization completed; a reachable but empty database is insufficient
Missing Composer class/autoloader locallyHost bind mount hiding image dependencies; install into the correct application Composer directory
Friendly URLs return 404Apache rewrite module and .htaccess processing; the image enables rewrite
Login loops or unexpected HTTP redirectsCookies, writable session storage, proxy scheme/headers, and APP_URL; login responses intentionally disable caching
Image missing after adding it to GitUpload to iicnetstorage / iicnetuploads, then check the expected path and live storage mount
Queued email is not deliveredCron daemon, enabled schedule, sender errors, provider configuration, and queue/log records

For local diagnostics, see local development. In Azure, use the Container App’s runtime logs and the corresponding Actions run. Avoid putting member data, tokens, or credential values into support tickets.

Rollback and recovery

Identify the last known-good commit/image and confirm the available Container Apps revisions before choosing a rollback. The repository does not define a rollback automation or backup-retention policy.

Verify database and file-share recovery separately. Do not restore production data, delete volumes, replay queued email, or enable legacy backup scripts without an approved recovery plan.

Source references