{
  "phases": {
    "package": {
      "context": {
        "resources": {
          "url": "{SHA_ARCHIVE}",
          "path": "/bitnami/wildfly"
        }
      },
      "actions": [
        {
          "action_id": "helm-package"
        },
        {
          "action_id": "helm-lint"
        }
      ]
    },
    "verify": {
      "context": {
        "resources": {
          "url": "{SHA_ARCHIVE}",
          "path": "/bitnami/wildfly"
        },
        "runtime_parameters": "d2lsZGZseVVzZXJuYW1lOiAidXNlciIKd2lsZGZseVBhc3N3b3JkOiAiQ29tcGxpY2F0ZWRQYXNzd29yZDEyMyE0IgpleHBvc2VNYW5hZ2VtZW50Q29uc29sZTogdHJ1ZQppbml0Q29udGFpbmVyczoKICMgVGhpcyBpbml0Q29udGFpbmVyIGJ1aWxkcyB0aGUgc2FtcGxlIGhlbGxvd29ybGQud2FyIGFydGlmYWN0CiAjIGZyb20gdGhlIG9mZmljaWFsIHdpbGRmbHkvcXVpY2tzdGFydCByZXBvc2l0b3J5LiBUaGlzIGlzCiAjIHRoZW4gbW91bnRlZCBpbnRvIGRlIFdpbGRGbHkgY29udGFpbmVyIHRvIHZlcmlmeSB0aGUKICMgc2VydmVyIGNhbiBkZXBsb3kgYSB3YXIgZmlsZS4KIC0gbmFtZTogYnVpbGQtd2FyCiAgIGltYWdlOiBiaXRuYW1pL2phdmE6MTEKICAgc2VjdXJpdHlDb250ZXh0OgogICAgIHJ1bkFzVXNlcjogMAogICBlbnY6CiAgICAgLSBuYW1lOiBNQVZFTl9WRVJTSU9OCiAgICAgICB2YWx1ZTogMy44LjYKICAgICAtIG5hbWU6IEFQUF9WRVJTSU9OCiAgICAgICB2YWx1ZTogInt7IC5DaGFydC5BcHBWZXJzaW9uIH19IgogICBjb21tYW5kOiBbJ2Jhc2gnLCAnLWMnLCAiY2QgL29wdC9iaXRuYW1pICYmIFwKICAgICBpbnN0YWxsX3BhY2thZ2VzIGN1cmwgY2EtY2VydGlmaWNhdGVzICYmIFwKICAgICBjdXJsIC1MIFwiaHR0cHM6Ly9kbGNkbi5hcGFj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": {
          "target_platform_id": "{VIB_ENV_TARGET_PLATFORM}",
          "size": {
            "name": "S4"
          }
        }
      },
      "actions": [
        {
          "action_id": "health-check",
          "params": {
            "endpoint": "lb-wildfly-http",
            "app_protocol": "HTTP"
          }
        },
        {
          "action_id": "goss",
          "params": {
            "resources": {
              "path": "/.vib/wildfly/goss"
            },
            "remote": {
              "workload": "deploy-wildfly"
            },
            "vars_file": "vars.yaml"
          }
        },
        {
          "action_id": "cypress",
          "params": {
            "resources": {
              "path": "/.vib/wildfly/cypress"
            },
            "endpoint": "lb-wildfly-http",
            "app_protocol": "HTTP"
          }
        }
      ]
    },
    "publish": {
      "actions": [
        {
          "action_id": "helm-publish",
          "params": {
            "repository": {
              "kind": "S3",
              "url": "{VIB_ENV_S3_URL}",
              "username": "{VIB_ENV_S3_USERNAME}",
              "password": "{VIB_ENV_S3_PASSWORD}"
            }
          }
        }
      ]
    }
  }
}
