@@ -16,10 +16,10 @@ jobs:
16
16
pre-commit :
17
17
runs-on : ubuntu-latest
18
18
steps :
19
-
19
+
20
+ - uses : actions/setup-python@v5
20
21
with :
21
- set-safe-directory : true
22
- - uses : actions/setup-python@v3
22
+ python-version : ' 3.x'
23
23
-
uses :
pre-commit/[email protected]
24
24
test :
25
25
name : test
29
29
- name : Install git
30
30
run : apk add --update --no-cache git
31
31
- name : Checkout code
32
- uses : actions/checkout@v3.0 .2
32
+ uses : actions/checkout@v4.2 .2
33
33
with :
34
34
fetch-depth : 0
35
- set-safe-directory : true
36
35
- name : Test
37
36
run : |
38
37
scripts/alpine-setup.sh
52
51
- name : Install git
53
52
run : apk add --update --no-cache git
54
53
- name : Checkout
55
- uses : actions/checkout@v3.0 .2
54
+ uses : actions/checkout@v4.2 .2
56
55
with :
57
56
fetch-depth : 0
58
- set-safe-directory : true
59
57
- name : Build
60
58
run : |
61
59
git config --global --add safe.directory /__w/kube-no-trouble/kube-no-trouble
@@ -74,14 +72,13 @@ jobs:
74
72
runs-on : ubuntu-latest
75
73
steps :
76
74
- name : Checkout
77
- uses : actions/checkout@v2
75
+ uses : actions/checkout@v4.2.2
78
76
with :
79
77
fetch-depth : 0
80
- set-safe-directory : true
81
78
- name : Set up Docker Buildx
82
- uses : docker/setup-buildx-action@v2
79
+ uses : docker/setup-buildx-action@v3
83
80
- name : Build and push Docker image
84
- uses : docker/build-push-action@v3
81
+ uses : docker/build-push-action@v6
85
82
with :
86
83
context : .
87
84
push : false
@@ -115,16 +112,15 @@ jobs:
115
112
]
116
113
steps :
117
114
- name : Checkout
118
- uses : actions/checkout@v3.0 .2
115
+ uses : actions/checkout@v4.2 .2
119
116
with :
120
117
fetch-depth : 0
121
- set-safe-directory : true
122
118
- uses : actions/download-artifact@v4
123
119
with :
124
120
name : release-artifacts-linux-amd64
125
121
path : release-artifacts
126
122
- name : Create k8s Kind Cluster
127
- uses : helm/kind-action@v1.10 .0
123
+ uses : helm/kind-action@v1.12 .0
128
124
with :
129
125
node_image : ${{ matrix.k8s_version }}
130
126
cluster_name : kubent-test-cluster
@@ -145,12 +141,11 @@ jobs:
145
141
tag_name : ${{ steps.get_tag.outputs.git_tag }}
146
142
steps :
147
143
- name : Checkout
148
- uses : actions/checkout@v3.0 .2
144
+ uses : actions/checkout@v4.2 .2
149
145
with :
150
146
fetch-depth : 0
151
- set-safe-directory : true
152
147
- name : Generate a changelog
153
- uses : orhun/git-cliff-action@v3
148
+ uses : orhun/git-cliff-action@v4
154
149
id : git-cliff
155
150
with :
156
151
config : cliff.toml
@@ -163,7 +158,7 @@ jobs:
163
158
path : release-artifacts
164
159
- name : Get the tag
165
160
id : get_tag
166
- run : echo ::set-output name= git_tag:: ${GITHUB_REF/refs\/tags\//}
161
+ run : echo " git_tag= ${GITHUB_REF/refs\/tags\//}" >> $GITHUB_OUTPUT
167
162
- name : Create Release
168
163
id : create_release
169
164
uses : actions/create-release@v1
@@ -186,17 +181,17 @@ jobs:
186
181
if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
187
182
steps :
188
183
- name : Checkout repository
189
- uses : actions/checkout@v3
184
+ uses : actions/checkout@v4.2.2
190
185
- name : Log in to the Container registry
191
- uses : docker/login-action@v2
186
+ uses : docker/login-action@v3
192
187
with :
193
188
registry : ${{ env.REGISTRY }}
194
189
username : ${{ github.actor }}
195
190
password : ${{ secrets.GITHUB_TOKEN }}
196
191
- name : Set up Docker Buildx
197
- uses : docker/setup-buildx-action@v2
192
+ uses : docker/setup-buildx-action@v3
198
193
- name : Build and push Docker image
199
- uses : docker/build-push-action@v3
194
+ uses : docker/build-push-action@v6
200
195
with :
201
196
context : .
202
197
push : true
0 commit comments