Skip to content

add actions runner template #3

add actions runner template

add actions runner template #3

name: Build Runner EC2 Images

Check failure on line 1 in .github/workflows/build-runner-images.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build-runner-images.yml

Invalid workflow file

No steps defined in `steps` and no workflow called in `uses` for the following jobs: update-registry
on:
schedule:
# 00:00 on Monday each week
- cron: "0 0 * * 1"
jobs:
build-image:
name: Build
runs-on: ubuntu-latest
defaults:
run:
working-directory: packer/github-actions
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v3
with:
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_NUMBER }}:role/github-to-aws-oidc
aws-region: us-east-1
- name: Setup `packer`
uses: hashicorp/setup-packer@main
id: setup
with:
version: "latest"
- name: Run `packer init`
id: init
run: packer init .
- name: Run `packer validate`
id: validate
run: packer validate .
- name: Packer Build
id: build
run: packer build -color=false -on-error=cleanup github-actions-runner.pkr.hcl
update-registry:
name: Update Registry
runs-on: ubuntu-latest