File tree Expand file tree Collapse file tree 2 files changed +41
-6
lines changed Expand file tree Collapse file tree 2 files changed +41
-6
lines changed Original file line number Diff line number Diff line change 4
4
push :
5
5
branches : [main]
6
6
paths :
7
- - ' .devcontainer/Dockerfile'
8
- - ' .github/workflows/publish-devcontainer.yml'
7
+ - " .devcontainer/Dockerfile"
8
+ - " .github/workflows/publish-devcontainer.yml"
9
9
workflow_dispatch :
10
10
11
11
env :
@@ -18,18 +18,21 @@ jobs:
18
18
permissions :
19
19
contents : read
20
20
packages : write
21
-
21
+
22
22
steps :
23
23
- name : Checkout repository
24
24
uses : actions/checkout@v4
25
+
25
26
- name : Set up Docker Buildx
26
27
uses : docker/setup-buildx-action@v3
28
+
27
29
- name : Log in to Container Registry
28
30
uses : docker/login-action@v3
29
31
with :
30
32
registry : ${{ env.REGISTRY }}
31
33
username : ${{ github.actor }}
32
- password : ${{ secrets.GITHUB_TOKEN }}
34
+ password : ${{ secrets.GITHUB_TOKEN }}
35
+
33
36
- name : Extract metadata
34
37
id : meta
35
38
uses : docker/metadata-action@v5
38
41
tags : |
39
42
type=ref,event=branch
40
43
type=sha,prefix={{branch}}-
41
- type=raw,value=latest,enable={{is_default_branch}}
44
+ type=raw,value=latest,enable={{is_default_branch}}
45
+
42
46
- name : Build and push devcontainer image
43
47
uses : docker/build-push-action@v6
44
48
with :
Original file line number Diff line number Diff line change 1
1
default_stages : [pre-commit]
2
2
3
3
repos :
4
+ - repo : https://github.com/pre-commit/pre-commit-hooks
5
+ rev : v5.0.0
6
+ hooks :
7
+ - id : end-of-file-fixer
8
+ name : End of file fixer
9
+ description : " Ensure files end with a newline"
10
+
11
+ - id : check-json
12
+ name : Check JSON
13
+ description : " Check that JSON files are valid"
14
+
15
+ - id : check-toml
16
+ name : Check TOML
17
+ description : " Check that TOML files are valid"
18
+
19
+ - id : check-xml
20
+ name : Check XML
21
+ description : " Check that XML files are valid"
22
+
23
+ - id : check-yaml
24
+ name : Check YAML
25
+ description : " Check that YAML files are valid"
26
+
27
+ - id : detect-private-key
28
+ name : Detect private key
29
+ description : " Detect private keys in files"
30
+
31
+ - id : trailing-whitespace
32
+ name : Trailing whitespace
33
+ description : " Remove trailing whitespace from files"
34
+
4
35
- repo : https://github.com/astral-sh/ruff-pre-commit
5
- rev : v0.9.2
36
+ rev : v0.12.8
6
37
hooks :
7
38
- id : ruff
8
39
name : Ruff check
You can’t perform that action at this time.
0 commit comments