-
Notifications
You must be signed in to change notification settings - Fork 0
88 lines (87 loc) · 2.88 KB
/
Copy pathchecks.yml
File metadata and controls
88 lines (87 loc) · 2.88 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
---
name: Run checks
on:
push:
jobs:
build:
permissions:
contents: read
packages: write
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
- name: Login to GitHub Container Registry
uses: docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1 # v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Buildx
uses: docker/setup-buildx-action@v3
with:
driver: docker-container
- name: Build devcontainer image
uses: devcontainers/ci@8bf61b26e9c3a98f69cb6ce2f88d24ff59b785c6 # v0.3.1900000417
with:
cacheFrom: ghcr.io/marinatedconcrete/config-devcontainer
cacheTo: ghcr.io/marinatedconcrete/config-devcontainer
env: |
CI=1
imageName: ghcr.io/marinatedconcrete/config-devcontainer
push: filter
refFilterForPush: refs/heads/main
check-format:
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
- name: Check formatting
uses: devcontainers/ci@8bf61b26e9c3a98f69cb6ce2f88d24ff59b785c6 # v0.3.1900000417
with:
cacheFrom: ghcr.io/marinatedconcrete/config-devcontainer
env: |
CI=1
imageName: ghcr.io/marinatedconcrete/config-devcontainer
push: never
runCmd: just check-format
kustomization-test:
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
- name: Validate configs
uses: devcontainers/ci@8bf61b26e9c3a98f69cb6ce2f88d24ff59b785c6 # v0.3.1900000417
with:
cacheFrom: ghcr.io/marinatedconcrete/config-devcontainer
env: |
CI=1
imageName: ghcr.io/marinatedconcrete/config-devcontainer
push: never
runCmd: just kustomization-test ${{ matrix.kustomization-test }}
strategy:
matrix:
kustomization-test:
- factorio
- kube-vip
- mosquitto
- paperless
- priorityclass
- unifi-network-application
lint:
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
- name: Validate configs
uses: devcontainers/ci@8bf61b26e9c3a98f69cb6ce2f88d24ff59b785c6 # v0.3.1900000417
with:
cacheFrom: ghcr.io/marinatedconcrete/config-devcontainer
env: |
CI=1
imageName: ghcr.io/marinatedconcrete/config-devcontainer
push: never
runCmd: just lint