Skip to content

Integrate API changes to integrate Launchpad builds #172

@cmyers-mieweb

Description

@cmyers-mieweb

Launchpad will now use an API key for action deployments. Currently the /containers route cannot GET and a new API route will need to be created so that a simple API can exist for the action to query.

Run mieweb/launchpad@cmyers_issue3
  with:
    api_key: ***
    api_url: ***
    template_name: ubuntu-22.04-standard
    install_command: apt-get update && apt-get install -y golang
    build_command: go build -o whoami .
    start_command: ./whoami --port 80
    runtime_language: go
    container_env_vars: {"WHOAMI_NAME": "LaunchPad-Test"}
Run if [[ "$GITHUB_EVENT_NAME" != "push" ]] || [[ "$GITHUB_EVENT_CREATED" == "false" ]]; then
Run if [[ "$GITHUB_JOB" == *"setup"* || "$GITHUB_JOB" == *"runner"* ]]; then
Run if [[ "$GITHUB_EVENT_NAME" == "delete" ]]; then
Using current branch name: master
Run # 1. Generate Container Name
Managing Container: cmyers-mieweb-whoami-master
Querying API: ***/containers?hostname=cmyers-mieweb-whoami-master
--- RAW API RESPONSE ---
* Host manager.os.mieweb.org:443 was resolved.
* IPv6: (none)
* IPv4: 184.175.182.248
*   Trying 184.175.182.248:443...
* Connected to manager.os.mieweb.org (184.175.182.248) port 443
* ALPN: curl offers h2,http/1.1
} [5 bytes data]
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
} [512 bytes data]
*  CAfile: /etc/ssl/certs/ca-certificates.crt
*  CApath: /etc/ssl/certs
{ [5 bytes data]
* TLSv1.3 (IN), TLS handshake, Server hello (2):
{ [122 bytes data]
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
{ [41 bytes data]
* TLSv1.3 (IN), TLS handshake, Certificate (11):
{ [2944 bytes data]
* TLSv1.3 (IN), TLS handshake, CERT verify (15):
{ [78 bytes data]
* TLSv1.3 (IN), TLS handshake, Finished (20):
{ [52 bytes data]
* TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
} [1 bytes data]
* TLSv1.3 (OUT), TLS handshake, Finished (20):
} [52 bytes data]
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384 / X25519 / id-ecPublicKey
* ALPN: server accepted h2
* Server certificate:
*  subject: CN=os.mieweb.org
*  start date: Nov 25 00:00:00 2025 GMT
*  expire date: Feb 23 23:59:59 2026 GMT
*  subjectAltName: host "manager.os.mieweb.org" matched cert's "*.os.mieweb.org"
*  issuer: C=AT; O=ZeroSSL; CN=ZeroSSL ECC Domain Secure Site CA
*  SSL certificate verify ok.
*   Certificate level 0: Public key type EC/prime256v1 (256/128 Bits/secBits), signed using ecdsa-with-SHA384
*   Certificate level 1: Public key type EC/secp384r1 (384/192 Bits/secBits), signed using ecdsa-with-SHA384
*   Certificate level 2: Public key type EC/secp384r1 (384/192 Bits/secBits), signed using ecdsa-with-SHA384
} [5 bytes data]
* using HTTP/2
* [HTTP/2] [1] OPENED stream for ***/containers?hostname=cmyers-mieweb-whoami-master
* [HTTP/2] [1] [:method: GET]
* [HTTP/2] [1] [:scheme: https]
* [HTTP/2] [1] [:authority: manager.os.mieweb.org]
* [HTTP/2] [1] [:path: /containers?hostname=cmyers-mieweb-whoami-master]
* [HTTP/2] [1] [user-agent: curl/8.5.0]
* [HTTP/2] [1] [accept: */*]
* [HTTP/2] [1] [authorization: ***
} [5 bytes data]
> GET /containers?hostname=cmyers-mieweb-whoami-master HTTP/2
> Host: manager.os.mieweb.org
> User-Agent: curl/8.5.0
> Accept: */*
> Authorization: Bearer 
> 
{ [5 bytes data]
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
{ [57 bytes data]
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
{ [57 bytes data]
* old SSL session ID is stale, removing
{ [5 bytes data]
< HTTP/2 404 
< server: nginx/1.29.3
< date: Tue, 27 Jan 2026 22:30:15 GMT
< content-type: text/html; charset=utf-8
< content-length: 149
< x-powered-by: Express
< x-ratelimit-limit: 100
< x-ratelimit-remaining: 99
< x-ratelimit-reset: 1769553916
< content-security-policy: default-src 'none'
< x-content-type-options: nosniff
< strict-transport-security: max-age=63072000; includeSubDomains; preload
< x-frame-options: SAMEORIGIN
< x-content-type-options: nosniff
< x-xss-protection: 1; mode=block
< alt-svc: h3=":443"; ma=86400
< 
{ [149 bytes data]
* Connection #0 to host manager.os.mieweb.org left intact
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Cannot GET /containers</pre>
</body>
</html>
------------------------
jq: parse error: Invalid numeric literal at line 1, column 2
Error: Process completed with exit code 5.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions