Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// For format details, see https://aka.ms/devcontainer.json.
{
"name": "Codefresh Support Package",
"image": "denoland/deno:2.0.3",
"onCreateCommand": "apt-get update && apt-get install git zip -y",
"image": "mcr.microsoft.com/devcontainers/base:ubuntu",
"onCreateCommand": "curl -fsSL https://deno.land/install.sh | sh -s -- -y",
"customizations": {
"vscode": {
"settings": {
Expand All @@ -11,7 +11,8 @@
},
"extensions": [
"denoland.vscode-deno",
"davidanson.vscode-markdownlint"
"davidanson.vscode-markdownlint",
"redhat.vscode-yaml"
]
}
}
Expand Down
49 changes: 49 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Release

on:
push:
tags:
- 'v*' # Triggers the workflow on new tags that start with 'v'

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Deno
uses: denoland/setup-deno@v2
with:
deno-version: vx.x.x

- name: Compile binaries
run: |
sed -i "s/__APP_VERSION__/$TAG_NAME/g" main.js
deno task compile
env:
TAG_NAME: ${{ github.ref_name }}

- name: Package binaries
run: |
zip ./bin/cf-support_windows_x86_64.zip ./bin/cf-support_windows_x86_64.exe
tar -czvf ./bin/cf-support_darwin_x86_64.tar.gz ./bin/cf-support_darwin_x86_64
tar -czvf ./bin/cf-support_darwin_arm64.tar.gz ./bin/cf-support_darwin_arm64
tar -czvf ./bin/cf-support_linux_x86_64.tar.gz ./bin/cf-support_linux_x86_64
- name: Create GitHub Release
id: create_release
uses: ncipollo/release-action@v1
with:
artifacts: |
./bin/cf-support_windows_x86_64.zip
./bin/cf-support_darwin_x86_64.tar.gz
./bin/cf-support_darwin_arm64.tar.gz
./bin/cf-support_linux_x86_64.tar.gz
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref_name }}
name: ${{ github.ref_name }}
body: ${{ github.event.head_commit.message }}
draft: false
prerelease: false
40 changes: 0 additions & 40 deletions CONTRIBUTIONS.md

This file was deleted.

14 changes: 1 addition & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# Codefresh Support Package

This project is designed to gather data from Hybrid Runtimes for Codefresh SaaS platform, and Hybrid Runtimes and OnPrem isntallation on the OnPrem Platform. It
collects information about various Kubernetes resources such as Pods, Nodes, Configmaps, Services, and Events. For Classic and OnPrem we gather some informtion
from the platform itself.
This project is designed to gather data from Hybrid Runtimes for Codefresh SaaS platform, and Hybrid Runtimes and OnPrem isntallation on the OnPrem Platform. It collects information about various Kubernetes resources such as Pods, Nodes, Configmaps, Services, and Events. For Classic and OnPrem we gather some informtion from the platform itself.

## Prereqs

Expand All @@ -15,9 +13,6 @@ from the platform itself.
- `CF_URL`: URL of the platform (ex: `https://g.codefresh.io`)
- Need an Account Admin Token for Claasic Hybrid Runtime.
- Need a System Admin Token for the OnPrem Installation.
- Helm
- Version 3.
- Used to get the helm release version of the installation.
- JQ
- Used only to get the latest version of the binary for *nix systems.

Expand Down Expand Up @@ -76,10 +71,3 @@ chmod +x cf-support
1. Go the the [Latest](https://github.com/codefresh-support/codefresh-support-package/releases/latest) release.
1. Download the cf-support_windows_x86_64.zip file
1. Run the `.exe` file via CMD or PowerShell

## Exit Codes

- 10 - Failed to get codefresh credentials. Please set the enviroment variables (CF_API_KEY and CF_BASE_URL) or make sure you have a valid codefresh config file.
- 20 - Failed to Create Demo Pipeline / Project or Failed to run Demo Pipeline.
- 30 - Failed to Delete Demo Pipeline / Project
- 40 - Invalid Runtime Type. ex: Selecting On-Prem for a SaaS Account.
1 change: 0 additions & 1 deletion VERSION

This file was deleted.

46 changes: 0 additions & 46 deletions ci/codefresh.yaml

This file was deleted.

9 changes: 5 additions & 4 deletions deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,18 @@
},
"tasks": {
"pre-compile": "rm -rf ./bin && mkdir ./bin",
"compile:linux": "deno compile --config=./deno.json --allow-env --allow-read --allow-write --allow-net --unsafely-ignore-certificate-errors --allow-run --output=./bin/cf-support_linux_x86_64 --target=x86_64-unknown-linux-gnu ./src/main.ts",
"compile:windows": "deno compile --config=./deno.json --allow-env --allow-read --allow-write --allow-net --unsafely-ignore-certificate-errors --allow-run --output=./bin/cf-support_windows_x86_64 --target=x86_64-pc-windows-msvc ./src/main.ts",
"compile:apple": "deno compile --config=./deno.json --allow-env --allow-read --allow-write --allow-net --unsafely-ignore-certificate-errors --allow-run --output=./bin/cf-support_darwin_x86_64 --target=x86_64-apple-darwin ./src/main.ts",
"compile:apple_arm64": "deno compile --config=./deno.json --allow-env --allow-read --allow-write --allow-net --unsafely-ignore-certificate-errors --allow-run --output=./bin/cf-support_darwin_arm64 --target=aarch64-apple-darwin ./src/main.ts",
"compile:linux": "deno compile --config=./deno.json --allow-env --allow-read --allow-write --allow-net --unsafely-ignore-certificate-errors --allow-run --output=./bin/cf-support_linux_x86_64 --target=x86_64-unknown-linux-gnu ./main.js",
"compile:windows": "deno compile --config=./deno.json --allow-env --allow-read --allow-write --allow-net --unsafely-ignore-certificate-errors --allow-run --output=./bin/cf-support_windows_x86_64 --target=x86_64-pc-windows-msvc ./main.js",
"compile:apple": "deno compile --config=./deno.json --allow-env --allow-read --allow-write --allow-net --unsafely-ignore-certificate-errors --allow-run --output=./bin/cf-support_darwin_x86_64 --target=x86_64-apple-darwin ./main.js",
"compile:apple_arm64": "deno compile --config=./deno.json --allow-env --allow-read --allow-write --allow-net --unsafely-ignore-certificate-errors --allow-run --output=./bin/cf-support_darwin_arm64 --target=aarch64-apple-darwin ./main.js",
"compile": "deno task pre-compile && deno task compile:linux && deno task compile:windows && deno task compile:apple && deno task compile:apple_arm64"
},
"imports": {
"@cliffy/table": "jsr:@cliffy/table@1.0.0-rc.7",
"@cloudydeno/kubernetes-apis": "jsr:@cloudydeno/kubernetes-apis@^0.5.2",
"@cloudydeno/kubernetes-client": "jsr:@cloudydeno/kubernetes-client@^0.7.3",
"@fakoua/zip-ts": "jsr:@fakoua/zip-ts@^1.3.1",
"@henrygd/semaphore": "jsr:@henrygd/semaphore@^0.0.2",
"@std/encoding": "jsr:@std/encoding@^1.0.5",
"@std/yaml": "jsr:@std/yaml@^1.0.5",
"pako": "npm:pako@^2.1.0"
Expand Down
109 changes: 109 additions & 0 deletions deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading