Skip to content

Instantly share code, notes, and snippets.

@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:
@davi020
davi020 / selfhosted_githubrunner_service.sh
Last active March 16, 2024 17:30
Shell script to setup multiple selfhosted github runner service in an AL2 server
#!/bin/bash
# Variables
runner_version="2.314.1" # GitHub runner version
count=2 # Number of GitHub runner services to create
base_dir="/apps" # Base directory for github runner services
working_dir_base="/apps/actions-runners/action-runner-" # GitHub runner working directories
# Get user and group input
read -p "Enter the action process username: " action_process_user