Skip to content

fix(deploy): align the public-site workflow with the canonical VM #14

Description

@luke-n-alpha

Problem

aipol.kaps.or.kr currently resolves to aipol-app-vm (20.41.101.22) and nginx serves /var/www/aipol-portal/current, but .github/workflows/deploy-azure-public-site.yml labels an Azure Static Web Apps upload as production. A successful SWA deployment therefore does not update the canonical public site.

Required change

  • keep SWA as an explicit preview/dev target only
  • deploy the reviewed site/ artifact to a versioned VM release directory
  • verify artifact identity before activation
  • run nginx -t
  • atomically switch /var/www/aipol-portal/current
  • automatically roll back on local/live verification failure
  • verify the canonical domain with Chromium and RSS checks
  • restore the unrelated drifted public-site tests so the official gate can run cleanly
  • document the VM as the canonical production target and remove ambiguous SWA prod wording

Acceptance

A workflow run from one reviewed SHA proves Dev/preview and canonical VM production use the same artifact, and https://aipol.kaps.or.kr/global/ changes without an out-of-band manual release.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions