This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |