-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (35 loc) · 1.08 KB
/
copilot-setup-steps.yml
File metadata and controls
41 lines (35 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# .github/workflows/copilot-setup-steps.yml
name: Homelab – Copilot Setup
on:
workflow_dispatch:
push:
paths:
- ".github/workflows/copilot-setup-steps.yml"
pull_request:
paths:
- ".github/workflows/copilot-setup-steps.yml"
jobs:
copilot-setup-steps:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Normalize repo name to lowercase
id: normalize
run: |
echo "REPO_LOWER=$(echo '${{ github.repository }}' | tr '[:upper:]' '[:lower:]')" >> $GITHUB_OUTPUT
- name: Set tooling image
id: image
run: |
echo "IMAGE=ghcr.io/${{ steps.normalize.outputs.REPO_LOWER }}/fedora-43-homelab-tooling:latest" >> $GITHUB_OUTPUT
- name: Checkout repository
uses: actions/checkout@v5
- name: Verify tooling inside container
uses: addnab/docker-run-action@v3
with:
image: ${{ steps.image.outputs.IMAGE }}
run: |
ansible --version
ansible-lint --version
yamllint --version
python3 --version