Skip to content

Instantly share code, notes, and snippets.

@eggplants
Last active February 18, 2025 01:45
Show Gist options
  • Save eggplants/307d692696844e88046e866df47284b5 to your computer and use it in GitHub Desktop.
Save eggplants/307d692696844e88046e866df47284b5 to your computer and use it in GitHub Desktop.
How to deploy my app to AppRun beta / https://manual.sakura.ad.jp/cloud/manual-sakura-apprun.html

How to deploy my app to AppRun beta

  1. Register / Login sacloud account: https://cloud.sakura.ad.jp/
  2. Add card at least one: https://secure.sakura.ad.jp/menu/info/?mode=M2010
  3. Create Container Registry (sakuracr) : https://secure.sakura.ad.jp/cloud/iaas/#!/appliance/containerregistry/
    • Create private registry
    • Create pull & push user
  4. Push image: https://ghcr.io/eggplants/ghcr-badge
    docker login eggplants-public.sakuracr.jp
    Username: xxx
    Password:
    Login Succeeded
    
    docker pull ghcr.io/eggplants/ghcr-badge:latest # my public image
    docker tag ghcr.io/eggplants/ghcr-badge:latest eggplants-public.sakuracr.jp/ghcr-badge:latest
    docker push eggplants-public.sakuracr.jp/ghcr-badge:latest
    
  5. Deploy to AppRun: https://secure.sakura.ad.jp/apprun/applications/new image

https://app-89c0d51c-7756-4acc-b650-45a55052a94d.ingress.apprun.sakura.ne.jp/

image

TODO

Terraform

https://registry.terraform.io/providers/sacloud/sakuracloud/latest/docs/resources/apprun_application

Deploy with apprun-cli

  1. Create API key: https://secure.sakura.ad.jp/cloud/#!/apikey/top/ image
  2. Deploy with apprun-cli
    go install github.com/fujiwara/apprun-cli/cmd/apprun-cli@latest
    cat <<'A'>.env
    SAKURACLOUD_ACCESS_TOKEN=xxx
    SAKURACLOUD_ACCESS_TOKEN_SECRET=yyy
    A
    source .env
    apprun-cli init --name=ghcr-badge
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment