Skip to content

Instantly share code, notes, and snippets.

@davi020
davi020 / selfhosted_githubrunner_service.sh
Last active June 21, 2024 03:19
Shell script to setup multiple selfhosted github runner service in an AL2 server
#!/bin/bash
# Get runner version dynamically from GitHub API
runner_version=$(curl --silent "https://api.github.com/repos/actions/runner/releases/latest" | jq -r '.tag_name[1:]')
echo "GitHub runner version: $runner_version"
# Get user and group input
read -p "Enter the action process username: " action_process_user
read -sp "Enter your GitHub PAT (masked): " PAT
echo
@davi020
davi020 / ecr_image_build.yaml
Last active March 29, 2024 02:39
Resolving "no basic auth credentials Error: Process completed with exit code 1" in AWS ECR GitHub Action Build Workflow
name: Build docker image and deploy it to ECR
# Controls when the workflow will run
on:
# Triggers the workflow on push
push:
branches: [ your-branch ]
jobs: