Skip to content

Commit

Permalink
switch to Amazon Linux 2 with ec2-github-runner preparation instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
yonch committed Jan 17, 2025
1 parent eb0a7d6 commit 8b6fcef
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/aws-runner-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,14 @@ jobs:
with:
mode: start
github-token: ${{ secrets.REPO_ADMIN_TOKEN }}
ec2-image-id: ami-08970251d20e940b0 # Amazon Linux 2023 in us-west-2
ec2-image-id: ami-006ec002b74f6c066 # Amazon Linux 2 in us-east-2
ec2-instance-type: t3.micro
subnet-id: ${{ secrets.AWS_SUBNET_ID }}
security-group-id: ${{ secrets.AWS_SECURITY_GROUP_ID }}
pre-runner-script: |
sudo dnf update -y
sudo dnf install docker git perl-libicu -y
sudo yum update -y && \
sudo yum install docker git libicu -y
sudo systemctl enable docker
sudo systemctl start docker
sudo usermod -a -G docker ec2-user
aws-resource-tags: >
[
{"Key": "Name", "Value": "github-runner"},
Expand Down

0 comments on commit 8b6fcef

Please sign in to comment.