Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update open-pr.yml - --workload-source-url #100

Merged
merged 6 commits into from
Feb 18, 2024

Conversation

mathieu-benoit
Copy link
Owner

No description provided.

Copy link

Deployment successfully completed for PR-100! 🎉

View in Humanitec

Deployment ID: f0d2d04563d0a0b75b481fb9d0a9ebec9e401ee3

Domains:

my-sample-app: harveyconsidineschmidt.newapp.io

Deployment diff

Deployment diff:

{
  "modules": {
    "add": null,
    "remove": [],
    "update": {
      "my-sample-app": [
        {
          "from": "",
          "op": "replace",
          "path": "/spec/containers/my-sample-app/image",
          "value": "us-east4-docker.pkg.dev/mathieu-benoit-gcp/containers/my-sample-app@sha256:f9fe139255d73f41d80b4ac51a43fd6d364a59bd6a2d4a0cffbe6a4043dd884f"
        },
        {
          "from": "",
          "op": "replace",
          "path": "/spec/annotations/humanitec.io~1workload-source",
          "value": "https://github.com/mathieu-benoit/sail-sharp/blob/100/merge/score/score.yaml"
        }
      ]
    }
  },
  "shared": null
}
Score Output

Score Output:

{
  "id": "f0d2d04563d0a0b75b481fb9d0a9ebec9e401ee3",
  "metadata": {
    "env_id": "pr-100",
    "name": "Update open-pr.yml",
    "url": "https://app.humanitec.io/orgs/mabenoit/apps/my-sample-app/envs/pr-100/draft/f0d2d04563d0a0b75b481fb9d0a9ebec9e401ee3",
    "created_by": "s-bfd1178a-106a-4135-b6e9-95b5a9c92b59",
    "created_at": "2024-02-18T00:14:44.115537822Z",
    "last_modified_at": "2024-02-18T00:14:44.115537822Z"
  },
  "modules": {
    "add": {
      "my-sample-app": {
        "externals": {
          "dns": {
            "class": "default",
            "type": "dns"
          },
          "route": {
            "class": "default",
            "params": {
              "host": "${externals.dns.host}",
              "path": "/",
              "port": 8080
            },
            "type": "route"
          }
        },
        "profile": "humanitec/default-module",
        "spec": {
          "annotations": {
            "humanitec.io/managed-by": "score-humanitec",
            "humanitec.io/workload-source": "https://github.com/mathieu-benoit/sail-sharp/blob/100/merge/score/score.yaml"
          },
          "containers": {
            "my-sample-app": {
              "id": "my-sample-app",
              "image": "us-east4-docker.pkg.dev/mathieu-benoit-gcp/containers/my-sample-app@sha256:f9fe139255d73f41d80b4ac51a43fd6d364a59bd6a2d4a0cffbe6a4043dd884f",
              "resources": {
                "limits": {
                  "cpu": "250m",
                  "memory": "256Mi"
                },
                "requests": {
                  "cpu": "25m",
                  "memory": "64Mi"
                }
              },
              "variables": {
                "MESSAGE": "Hello, World!",
                "NAMESPACE_NAME": "${pod.metadata.namespace}",
                "POD_NAME": "${pod.metadata.name}"
              }
            }
          },
          "service": {
            "ports": {
              "tcp": {
                "container_port": 8080,
                "protocol": "TCP",
                "service_port": 8080
              }
            }
          },
          "terminationGracePeriodSeconds": 60
        }
      }
    }
  }
}

Copy link

Deployment successfully completed for PR-100! 🎉

View in Humanitec

Deployment ID: 482ea2e3f708179bccd06c47107f9522f44f32e2

Domains:

my-sample-app: harveyconsidineschmidt.newapp.io

Deployment diff

Deployment diff:

{
  "modules": {
    "add": null,
    "remove": [],
    "update": {
      "my-sample-app": [
        {
          "from": "",
          "op": "replace",
          "path": "/spec/containers/my-sample-app/image",
          "value": "us-east4-docker.pkg.dev/mathieu-benoit-gcp/containers/my-sample-app@sha256:24fd216be6f1722ca8e00d359a230cc90981462839eff6ba7bc34b682ea6f2f3"
        },
        {
          "from": "",
          "op": "replace",
          "path": "/spec/annotations/humanitec.io~1workload-source",
          "value": "https://github.com/mathieu-benoit/sail-sharp/blob/mathieu-benoit-patch-1/score/score.yaml"
        }
      ]
    }
  },
  "shared": null
}
Score Output

Score Output:

{
  "id": "482ea2e3f708179bccd06c47107f9522f44f32e2",
  "metadata": {
    "env_id": "pr-100",
    "name": "Update open-pr.yml - github.head_ref",
    "url": "https://app.humanitec.io/orgs/mabenoit/apps/my-sample-app/envs/pr-100/draft/482ea2e3f708179bccd06c47107f9522f44f32e2",
    "created_by": "s-bfd1178a-106a-4135-b6e9-95b5a9c92b59",
    "created_at": "2024-02-18T03:12:39.589083986Z",
    "last_modified_at": "2024-02-18T03:12:39.589083986Z"
  },
  "modules": {
    "add": {
      "my-sample-app": {
        "externals": {
          "dns": {
            "class": "default",
            "type": "dns"
          },
          "route": {
            "class": "default",
            "params": {
              "host": "${externals.dns.host}",
              "path": "/",
              "port": 8080
            },
            "type": "route"
          }
        },
        "profile": "humanitec/default-module",
        "spec": {
          "annotations": {
            "humanitec.io/managed-by": "score-humanitec",
            "humanitec.io/workload-source": "https://github.com/mathieu-benoit/sail-sharp/blob/mathieu-benoit-patch-1/score/score.yaml"
          },
          "containers": {
            "my-sample-app": {
              "id": "my-sample-app",
              "image": "us-east4-docker.pkg.dev/mathieu-benoit-gcp/containers/my-sample-app@sha256:24fd216be6f1722ca8e00d359a230cc90981462839eff6ba7bc34b682ea6f2f3",
              "resources": {
                "limits": {
                  "cpu": "250m",
                  "memory": "256Mi"
                },
                "requests": {
                  "cpu": "25m",
                  "memory": "64Mi"
                }
              },
              "variables": {
                "MESSAGE": "Hello, World!",
                "NAMESPACE_NAME": "${pod.metadata.namespace}",
                "POD_NAME": "${pod.metadata.name}"
              }
            }
          },
          "service": {
            "ports": {
              "tcp": {
                "container_port": 8080,
                "protocol": "TCP",
                "service_port": 8080
              }
            }
          },
          "terminationGracePeriodSeconds": 60
        }
      }
    }
  }
}

@mathieu-benoit mathieu-benoit merged commit 74e17cf into main Feb 18, 2024
2 checks passed
@mathieu-benoit mathieu-benoit deleted the mathieu-benoit-patch-1 branch February 18, 2024 03:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant