Skip to content

Commit 154717b

Browse files
committed
Update GitHub actions versions
1 parent 3329a00 commit 154717b

File tree

1 file changed

+38
-39
lines changed

1 file changed

+38
-39
lines changed

.github/workflows/main.yml

Lines changed: 38 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -12,28 +12,28 @@ jobs:
1212
runs-on: ubuntu-latest
1313

1414
steps:
15-
- name: 'Checkout'
16-
uses: actions/checkout@v3
15+
- name: "Checkout"
16+
uses: actions/checkout@v4
1717

18-
- name: 'Setup buildx'
18+
- name: "Setup buildx"
1919
uses: docker/setup-buildx-action@v2
2020
with:
2121
install: true
2222

23-
- name: 'Docker login'
23+
- name: "Docker login"
2424
uses: docker/login-action@v2
2525
with:
2626
username: kbstci
2727
password: ${{ secrets.DOCKER_AUTH }}
2828

29-
- name: 'Build artifacts'
29+
- name: "Build artifacts"
3030
env:
3131
DOCKER_PUSH: true
3232
GIT_SHA: ${{ github.sha }}
3333
GIT_REF: ${{ github.ref }}
3434
run: make dist
3535

36-
- name: 'Upload artifacts'
36+
- name: "Upload artifacts"
3737
uses: actions/upload-artifact@v3
3838
with:
3939
name: test-artifacts
@@ -44,38 +44,38 @@ jobs:
4444
needs: [build-test-artifacts]
4545
strategy:
4646
matrix:
47-
starter: ["multi-cloud", "aks", "eks", "gke" ,"kind"]
47+
starter: ["multi-cloud", "aks", "eks", "gke", "kind"]
4848

4949
permissions:
5050
id-token: write # needed for keyless signing
5151

5252
steps:
53-
- name: 'Free disk space'
53+
- name: "Free disk space"
5454
# https://github.com/actions/runner-images/issues/2840#issuecomment-790492173
5555
run: |
5656
sudo rm -rf /usr/share/dotnet
5757
sudo rm -rf /opt/ghc
5858
sudo rm -rf /usr/local/share/boost
5959
sudo rm -rf $AGENT_TOOLSDIRECTORY
6060
61-
- name: 'Checkout'
62-
uses: actions/checkout@v3
61+
- name: "Checkout"
62+
uses: actions/checkout@v4
6363

64-
- name: 'Download test-artifacts'
65-
uses: actions/download-artifact@v3
64+
- name: "Download test-artifacts"
65+
uses: actions/download-artifact@v4
6666
with:
6767
name: test-artifacts
6868
path: ./quickstart/_dist
6969

7070
- name: Install Cosign
7171
uses: sigstore/cosign-installer@9614fae9e5c5eddabb09f90a270fcb487c9f7149 #v3.3.0
7272

73-
- name: 'Setup buildx'
73+
- name: "Setup buildx"
7474
uses: docker/setup-buildx-action@v2
7575
with:
7676
install: true
7777

78-
- name: 'Docker login'
78+
- name: "Docker login"
7979
uses: docker/login-action@v2
8080
with:
8181
username: kbstci
@@ -87,7 +87,7 @@ jobs:
8787
DOCKER_TARGET: ${{ matrix.starter }}
8888
run: make build
8989

90-
- name: 'Sign Images'
90+
- name: "Sign Images"
9191
env:
9292
COSIGN_EXPERIMENTAL: true
9393
run: |
@@ -99,26 +99,26 @@ jobs:
9999
strategy:
100100
fail-fast: false
101101
matrix:
102-
starter: ["multi-cloud", "aks", "eks", "gke" ,"kind"]
102+
starter: ["multi-cloud", "aks", "eks", "gke", "kind"]
103103

104104
steps:
105-
- name: 'Download test-artifacts'
106-
uses: actions/download-artifact@v3
105+
- name: "Download test-artifacts"
106+
uses: actions/download-artifact@v4
107107
with:
108108
name: test-artifacts
109109
path: ./quickstart/_dist
110110

111-
- name: 'Unzip ${{ matrix.starter }} quickstart'
111+
- name: "Unzip ${{ matrix.starter }} quickstart"
112112
run: |
113113
unzip quickstart/_dist/kubestack-starter-${{ matrix.starter }}-*.zip
114114
115-
- name: 'Docker login'
115+
- name: "Docker login"
116116
uses: docker/login-action@v2
117117
with:
118118
username: kbstci
119119
password: ${{ secrets.DOCKER_AUTH }}
120120

121-
- name: 'Docker build'
121+
- name: "Docker build"
122122
env:
123123
DOCKER_BUILDKIT: 1
124124
working-directory: ./kubestack-starter-${{ matrix.starter }}
@@ -132,7 +132,7 @@ jobs:
132132
docker tag $SOURCE_IMAGE $TARGET_IMAGE
133133
docker build -t test-image:${{ github.sha }} .
134134
135-
- name: 'Configure Kubestack for ${{ matrix.starter }}'
135+
- name: "Configure Kubestack for ${{ matrix.starter }}"
136136
working-directory: ./kubestack-starter-${{ matrix.starter }}
137137
run: |
138138
# ALL: set name_prefix
@@ -159,31 +159,31 @@ jobs:
159159
# GKE: set cluster_node_locations
160160
sed -i 's/cluster_node_locations = ""/cluster_node_locations = "europe-west1-b,europe-west1-c,europe-west1-d"/g' gke_zero_cluster.tf || true
161161
162-
- name: 'Terraform init'
162+
- name: "Terraform init"
163163
working-directory: ./kubestack-starter-${{ matrix.starter }}
164164
run: |
165165
docker run --rm \
166166
-v `pwd`:/infra \
167167
test-image:${{ github.sha }} \
168168
terraform init
169169
170-
- name: 'Terraform workspace new ops'
170+
- name: "Terraform workspace new ops"
171171
working-directory: ./kubestack-starter-${{ matrix.starter }}
172172
run: |
173173
docker run --rm \
174174
-v `pwd`:/infra \
175175
test-image:${{ github.sha }} \
176176
terraform workspace new ops
177177
178-
- name: 'Terraform validate'
178+
- name: "Terraform validate"
179179
working-directory: ./kubestack-starter-${{ matrix.starter }}
180180
run: |
181181
docker run --rm \
182182
-v `pwd`:/infra \
183183
test-image:${{ github.sha }} \
184184
terraform validate
185185
186-
- name: 'Terraform plan'
186+
- name: "Terraform plan"
187187
working-directory: ./kubestack-starter-${{ matrix.starter }}
188188
env:
189189
KBST_AUTH_AWS: ${{ secrets.KBST_AUTH_AWS }}
@@ -203,28 +203,27 @@ jobs:
203203
runs-on: ubuntu-latest
204204
needs: [test]
205205

206-
207206
strategy:
208207
matrix:
209-
starter: ["multi-cloud", "aks", "eks", "gke" ,"kind"]
208+
starter: ["multi-cloud", "aks", "eks", "gke", "kind"]
210209

211210
steps:
212-
- name: 'Download test-artifacts'
213-
uses: actions/download-artifact@v3
211+
- name: "Download test-artifacts"
212+
uses: actions/download-artifact@v4
214213
with:
215214
name: test-artifacts
216215
path: ./quickstart/_dist
217216

218217
- name: Install Cosign
219218
uses: sigstore/cosign-installer@9614fae9e5c5eddabb09f90a270fcb487c9f7149 #v3.3.0
220219

221-
- name: 'Docker login'
220+
- name: "Docker login"
222221
uses: docker/login-action@v2
223222
with:
224223
username: kbstci
225224
password: ${{ secrets.DOCKER_AUTH }}
226225

227-
- name: 'Docker push'
226+
- name: "Docker push"
228227
# cosign copy copies the images and the signature from one place to another
229228
# then we dont need to sign again the same image
230229
env:
@@ -246,27 +245,27 @@ jobs:
246245

247246
strategy:
248247
matrix:
249-
starter: ["multi-cloud", "aks", "eks", "gke" ,"kind"]
248+
starter: ["multi-cloud", "aks", "eks", "gke", "kind"]
250249

251250
steps:
252-
- name: 'Download test-artifacts'
253-
uses: actions/download-artifact@v3
251+
- name: "Download test-artifacts"
252+
uses: actions/download-artifact@v4
254253
with:
255254
name: test-artifacts
256255
path: ./quickstart/_dist
257256

258257
- name: Install Cosign
259258
uses: sigstore/cosign-installer@9614fae9e5c5eddabb09f90a270fcb487c9f7149 #v3.3.0
260259

261-
- id: 'auth'
262-
uses: 'google-github-actions/auth@v1'
260+
- id: "auth"
261+
uses: "google-github-actions/auth@v1"
263262
with:
264263
credentials_json: ${{ secrets.GCLOUD_AUTH }}
265264

266-
- name: 'Setup gcloud'
265+
- name: "Setup gcloud"
267266
uses: google-github-actions/setup-gcloud@v1
268267

269-
- name: 'Publish ${{ matrix.starter }} starter'
268+
- name: "Publish ${{ matrix.starter }} starter"
270269
env:
271270
COSIGN_EXPERIMENTAL: true
272271
run: |

0 commit comments

Comments
 (0)