Pre-requisite :
- Python3
- Pip
pip3 install pyyaml
test.yaml
--- | |
helmfiles: | |
- "../controller/helmfile.yaml" | |
repositories: | |
- name: ghcr-actions | |
url: ghcr.io/actions/actions-runner-controller-charts | |
oci: true | |
releases: |
#!/bin/bash | |
echo "Github CLI script to rerun checks for PRs" | |
# used for loadtesting github arc runner scale set - autoscaler | |
export GH_PAGER="" | |
export REPO_PREFIX="xxx-" | |
export LIMIT="10" | |
export PR_SEARCH_QUERY="is:pr is:open draft:false created:>=2024-06-01" | |
export REPO_SORT="updated" #best-match|forks|help-wanted-issues|stars|updated |
#!/bin/bash | |
# Set the project ID | |
PROJECT_ID="XXXXXXXXX" | |
# Get instance information in JSON format | |
gcloud compute instances list \ | |
--project "${PROJECT_ID}" \ | |
--format="json" > ./instances.json |
#!/bin/bash | |
instance_list="instances.cfg" | |
date=$(date +'%FT%TZ') | |
mkdir -pv $(pwd)/cronjob-logs | |
mkdir -pv $(pwd)/cronjob-logs/$date | |
while read instance_name <&3 | |
do | |
echo "----------------------------------------------" 2>&1 | tee -a $(pwd)/cronjob-logs/$date/$instance_name-cronjob.log |
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"github.com/hashicorp/nomad/api" | |
"github.com/sirupsen/logrus" | |
) |
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"time" | |
"github.com/hashicorp/nomad/api" | |
"github.com/sirupsen/logrus" | |
) |
Pre-requisite :
pip3 install pyyaml
test.yaml
#!/bin/bash | |
init() { | |
PROJECT_ID= | |
GITLAB_PRIVATE_TOKEN= | |
} | |
restore_project_variables() { | |
while read project_var_key <&3 && \ | |
read project_var_value <&4 && \ |
#!/bin/bash | |
init() { | |
PROJECT_ID= | |
GITLAB_PRIVATE_TOKEN= | |
touch ./backup_envar_${PROJECT_ID}.conf | |
touch ./backup_envar_${PROJECT_ID}.json | |
} | |
backup_and_delete_project_variables() { |
#!/bin/bash | |
init() { | |
SOURCE_PROJECT_ID= | |
TARGET_PROJECT_ID= | |
GITLAB_PRIVATE_TOKEN= | |
} | |
import_project_variables() { | |
while read project_var_key <&3 && \ |