setup: verifies prerequisites and provisions the Azure Static Web App
Rise, cloud wanderer! This quest guides you through deploying the IT-Journey Jekyll site to Azure Static Web Apps, wiring up CI/CD, and verifying a clean production build.
π― Quest Objectives¶
Primary Objectives¶
- Provision Azure Static Web Apps - Create the app and link to GitHub
- Configure Build & Deploy - Ensure Jekyll build works in CI
- Secure Secrets - Store keys safely in GitHub
- Verify Production - Confirm the deployed site loads correctly
πΊοΈ Quest Prerequisites¶
π Knowledge Requirements¶
- Basic GitHub workflow familiarity
- Comfort with terminal commands
- Understanding of static sites
π οΈ System Requirements¶
- Azure account with permissions to create Static Web Apps
- GitHub account with repo access
- Azure CLI installed and authenticated (
az login) β Chapter 2 depends on Azure authentication - Ruby β₯ 3.2 and Bundler installed (
gem install bundler)
π§ββοΈ Chapter 1: Prepare the Repository¶
First, clone the IT-Journey repository and change into the Jekyll site root β every command below assumes this is your working directory (it is where the Gemfile lives):
Ensure dependencies are installed (run from the it-journey repo root, next to the Gemfile):
Verify local build:
βοΈ Chapter 2: Deploy with the Azure Helper Script¶
Use the built-in deployment script. Run it from the it-journey repo root (the same directory you cloned into in Chapter 1) using its repo-relative path:
# setup: verifies prerequisites and provisions the Azure Static Web App
scripts/deployment/azure-jekyll-deploy.sh setup
# deploy: pushes the build and wires up the GitHub Actions CI/CD workflow
# --app-name the name for your Azure Static Web App (e.g. my-it-journey)
# --github-repo the HTTPS URL of your fork (e.g. https://github.com/<you>/it-journey)
scripts/deployment/azure-jekyll-deploy.sh deploy --app-name <your-app-name> --github-repo <your-repo-url>
Follow the prompts for Azure authentication and GitHub workflow setup.
π Chapter 3: Secrets & Workflow Verification¶
- Confirm the required GitHub secret is set: the Azure Static Web Apps deployment token,
stored as
AZURE_STATIC_WEB_APPS_API_TOKENunder Settings β Secrets and variables β Actions in your repo. Thedeploystep above prints this token; copy it into the secret. - Open the generated workflow in
.github/workflows/. - Trigger a deploy by pushing a small change.
β Chapter 4: Validate the Deployment¶
- Visit the Azure-provided URL
- Confirm
/quests/loads correctly - Check logs for a successful build
π Quest Completion Checklist¶
- Azure Static Web App created and linked
- CI/CD pipeline runs successfully
- Site is accessible in production
π Related Quests¶
πΈοΈ Knowledge Graph¶
Structured wiki-links connect this quest to the IT-Journey knowledge graph. Open the Obsidian Graph View to explore connections.
Level hub: [[Level 1000 (8) - Cloud Computing]] Overworld: [[π° Overworld - Master Quest Map]] Obsidian docs: [[Obsidian Knowledge Graph and Wiki Links]]