Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

New route support in Score #26

Merged
merged 1 commit into from
Jan 19, 2024
Merged

New route support in Score #26

merged 1 commit into from
Jan 19, 2024

Conversation

mathieu-benoit
Copy link
Contributor

No description provided.

Copy link

Deployment Complete for PR-26! 🎉

View in Humanitec

Deployment ID: ac9d62a48e2f1ceb680d5848bfb96122c7f2f16d

Domains:

Score Output

Score Output:

{
  "id": "ac9d62a48e2f1ceb680d5848bfb96122c7f2f16d",
  "metadata": {
    "env_id": "pr-26",
    "name": "Auto-deployment (SCORE)",
    "url": "https://app.humanitec.io/orgs/woverton-testing/apps/automated-app/envs/pr-26/draft/ac9d62a48e2f1ceb680d5848bfb96122c7f2f16d",
    "created_by": "s-1e40c425-b410-430a-8e8b-3c6b92825adb",
    "created_at": "2024-01-19T20:37:20.481361141Z",
    "last_modified_at": "2024-01-19T20:37:20.481361141Z"
  },
  "modules": {
    "add": {
      "hello-world": {
        "externals": {
          "db": {
            "type": "postgres"
          },
          "dns": {
            "type": "dns"
          },
          "route": {
            "params": {
              "host": "${externals.dns.host}",
              "path": "/",
              "port": 80
            },
            "type": "route"
          }
        },
        "profile": "humanitec/default-module",
        "spec": {
          "annotations": {
            "humanitec.io/managed-by": "score-humanitec"
          },
          "containers": {
            "frontend": {
              "id": "frontend",
              "image": "registry.humanitec.io/public/sample-score-app:latest",
              "variables": {
                "DB_DATABASE": "${externals.db.name}",
                "DB_HOST": "${externals.db.host}",
                "DB_PASSWORD": "${externals.db.password}",
                "DB_PORT": "${externals.db.port}",
                "DB_USER": "${externals.db.username}",
                "MESSAGE": "Hello World!",
                "PORT": "3000"
              }
            }
          },
          "service": {
            "ports": {
              "www": {
                "container_port": 3000,
                "protocol": "TCP",
                "service_port": 80
              }
            }
          }
        }
      }
    }
  }
}

@mathieu-benoit mathieu-benoit merged commit 4127519 into main Jan 19, 2024
1 check passed
@mathieu-benoit mathieu-benoit deleted the route branch January 19, 2024 20:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant