Skip to content

Commit 0dd2b45

Browse files
author
Dmytro Bondar
authored
Bump action's versions (#403)
* Enable dependabot for actions * Bump action's versions to latest * Update missed docker/login-action * Remove azure/setup-helm action
1 parent 7c49846 commit 0dd2b45

File tree

2 files changed

+19
-24
lines changed

2 files changed

+19
-24
lines changed

.github/dependabot.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,12 @@ updates:
55
schedule:
66
interval: weekly
77
open-pull-requests-limit: 10
8+
9+
- package-ecosystem: github-actions
10+
directory: "/"
11+
schedule:
12+
interval: weekly
13+
groups:
14+
actions:
15+
patterns:
16+
- "*"

.github/workflows/pipeline.yaml

Lines changed: 10 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,12 @@ env:
1515
imageRepository: "emberstack/kubernetes-reflector"
1616
DOCKER_CLI_EXPERIMENTAL: "enabled"
1717

18-
1918
jobs:
2019
ci:
2120
name: CI
2221
runs-on: ubuntu-latest
2322
steps:
24-
25-
- name: tools - helm - install
26-
uses: azure/setup-helm@v1
27-
28-
29-
30-
- name: checkout
31-
uses: actions/checkout@v2
23+
- uses: actions/checkout@v4
3224

3325
- name: artifacts - prepare directories
3426
run: |
@@ -45,13 +37,13 @@ jobs:
4537
run: helm template --namespace kube-system reflector .artifacts/helm/reflector-${{env.version}}.tgz > .artifacts/kubectl/reflector-${{env.version}}.yaml
4638

4739
- name: "artifacts - upload - helm chart"
48-
uses: actions/upload-artifact@v2
40+
uses: actions/upload-artifact@v4
4941
with:
5042
name: helm
5143
path: .artifacts/helm
5244

5345
- name: "artifacts - upload - kubectl manifests"
54-
uses: actions/upload-artifact@v2
46+
uses: actions/upload-artifact@v4
5547
with:
5648
name: kubectl
5749
path: .artifacts/kubectl
@@ -68,12 +60,11 @@ jobs:
6860
6961
- name: tools - docker - login
7062
if: github.event_name == 'push' && github.actor != 'dependabot[bot]'
71-
uses: docker/login-action@v1
63+
uses: docker/login-action@v3
7264
with:
7365
username: ${{ secrets.ES_DOCKERHUB_USERNAME }}
7466
password: ${{ secrets.ES_DOCKERHUB_PAT }}
7567

76-
7768
- name: "docker - build and publish"
7869
if: github.event_name == 'push' && github.actor != 'dependabot[bot]'
7970
run: |
@@ -96,23 +87,20 @@ jobs:
9687
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
9788
runs-on: ubuntu-latest
9889
steps:
99-
- name: tools - helm - install
100-
uses: azure/setup-helm@v1
101-
10290
- name: tools - docker - login
103-
uses: docker/login-action@v1
91+
uses: docker/login-action@v3
10492
with:
10593
username: ${{ secrets.ES_DOCKERHUB_USERNAME }}
10694
password: ${{ secrets.ES_DOCKERHUB_PAT }}
10795

10896
- name: artifacts - download - helm chart
109-
uses: actions/download-artifact@v2
97+
uses: actions/download-artifact@v4
11098
with:
11199
name: helm
112100
path: .artifacts/helm
113101

114102
- name: artifacts - download - kubectl manifests
115-
uses: actions/download-artifact@v2
103+
uses: actions/download-artifact@v4
116104
with:
117105
name: kubectl
118106
path: .artifacts/kubectl
@@ -136,13 +124,12 @@ jobs:
136124
docker push ${{env.imageRepository}}:${{env.version}}-arm64v8
137125
138126
- name: github - checkout - helm-charts
139-
uses: actions/checkout@v2
127+
uses: actions/checkout@v4
140128
with:
141129
repository: emberstack/helm-charts
142-
token: ${{ secrets.ES_GITHUB_PAT }}
130+
token: ${{ secrets.ES_GITHUB_PAT }}
143131
path: helm-charts
144132

145-
146133
- name: github - publish - chart
147134
run: |
148135
mkdir -p helm-charts/charts
@@ -161,7 +148,7 @@ jobs:
161148
162149
- name: github - release - set manifest name
163150
run: |
164-
mkdir -p github
151+
mkdir -p github
165152
cp .artifacts/kubectl/reflector-${{env.version}}.yaml github/reflector.yaml
166153
167154
- name: github - create release
@@ -174,4 +161,3 @@ jobs:
174161
token: ${{ secrets.ES_GITHUB_PAT }}
175162
files: |
176163
github/reflector.yaml
177-

0 commit comments

Comments
 (0)