Skip to content
This repository was archived by the owner on Feb 10, 2025. It is now read-only.

Commit 13a3916

Browse files
authored
🔧 upgrade deprecated github actions (#307)
1 parent 10d53fb commit 13a3916

File tree

7 files changed

+32
-26
lines changed

7 files changed

+32
-26
lines changed

.github/workflows/build.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ jobs:
1111
build:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v4
1515
- name: Install node
16-
uses: actions/setup-node@v1
16+
uses: actions/setup-node@v4
1717
with:
1818
node-version: 18
1919
- name: Cache
20-
uses: actions/cache@v2
20+
uses: actions/cache@v4
2121
id: cache
2222
with:
2323
path: '**/node_modules'

.github/workflows/docker-edge.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -38,32 +38,32 @@ jobs:
3838
matrix:
3939
os: [ubuntu, alpine]
4040
steps:
41-
- uses: actions/checkout@v3
41+
- uses: actions/checkout@v4
4242

4343
- name: Set up QEMU
44-
uses: docker/setup-qemu-action@v2
44+
uses: docker/setup-qemu-action@v3
4545

4646
- name: Set up Docker Buildx
47-
uses: docker/setup-buildx-action@v2
47+
uses: docker/setup-buildx-action@v3
4848

4949
- name: Docker meta
5050
id: meta
51-
uses: docker/metadata-action@v4
51+
uses: docker/metadata-action@v5
5252
with:
5353
# Push to both Docker Hub and Github Container Registry
5454
images: ${{ env.IMAGES }}
5555
flavor: ${{ matrix.os != 'ubuntu' && format('suffix=-{0}', matrix.os) || '' }}
5656
tags: ${{ env.TAGS }}
5757

5858
- name: Login to Docker Hub
59-
uses: docker/login-action@v2
59+
uses: docker/login-action@v3
6060
if: github.event_name != 'pull_request'
6161
with:
6262
username: ${{ secrets.DOCKERHUB_USERNAME }}
6363
password: ${{ secrets.DOCKERHUB_TOKEN }}
6464

6565
- name: Login to GitHub Container Registry
66-
uses: docker/login-action@v2
66+
uses: docker/login-action@v3
6767
if: github.event_name != 'pull_request'
6868
with:
6969
registry: ghcr.io
@@ -76,7 +76,7 @@ jobs:
7676
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7777

7878
- name: Build and push image
79-
uses: docker/build-push-action@v4
79+
uses: docker/build-push-action@v5
8080
with:
8181
context: .
8282
push: ${{ github.event_name != 'pull_request' }}

.github/workflows/docker-release.yml

+9-9
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,17 @@ jobs:
2727
name: Build Docker image
2828
runs-on: ubuntu-latest
2929
steps:
30-
- uses: actions/checkout@v3
30+
- uses: actions/checkout@v4
3131

3232
- name: Set up QEMU
33-
uses: docker/setup-qemu-action@v2
33+
uses: docker/setup-qemu-action@v3
3434

3535
- name: Set up Docker Buildx
36-
uses: docker/setup-buildx-action@v2
36+
uses: docker/setup-buildx-action@v3
3737

3838
- name: Docker meta
3939
id: meta
40-
uses: docker/metadata-action@v4
40+
uses: docker/metadata-action@v5
4141
with:
4242
# Push to both Docker Hub and Github Container Registry
4343
images: ${{ env.IMAGES }}
@@ -47,7 +47,7 @@ jobs:
4747

4848
- name: Docker meta for Alpine image
4949
id: alpine-meta
50-
uses: docker/metadata-action@v4
50+
uses: docker/metadata-action@v5
5151
with:
5252
images: ${{ env.IMAGES }}
5353
# Automatically update :latest
@@ -57,20 +57,20 @@ jobs:
5757
tags: ${{ env.TAGS }}
5858

5959
- name: Login to Docker Hub
60-
uses: docker/login-action@v2
60+
uses: docker/login-action@v3
6161
with:
6262
username: ${{ secrets.DOCKERHUB_USERNAME }}
6363
password: ${{ secrets.DOCKERHUB_TOKEN }}
6464

6565
- name: Login to GitHub Container Registry
66-
uses: docker/login-action@v2
66+
uses: docker/login-action@v3
6767
with:
6868
registry: ghcr.io
6969
username: ${{ github.repository_owner }}
7070
password: ${{ secrets.GITHUB_TOKEN }}
7171

7272
- name: Build and push ubuntu image
73-
uses: docker/build-push-action@v4
73+
uses: docker/build-push-action@v5
7474
with:
7575
context: .
7676
push: true
@@ -79,7 +79,7 @@ jobs:
7979
tags: ${{ steps.meta.outputs.tags }}
8080

8181
- name: Build and push alpine image
82-
uses: docker/build-push-action@v4
82+
uses: docker/build-push-action@v5
8383
with:
8484
context: .
8585
push: true

.github/workflows/lint.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ jobs:
1111
lint:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v4
1515
- name: Install node
16-
uses: actions/setup-node@v1
16+
uses: actions/setup-node@v4
1717
with:
1818
node-version: 18
1919
- name: Cache
20-
uses: actions/cache@v2
20+
uses: actions/cache@v4
2121
id: cache
2222
with:
2323
path: '**/node_modules'

.github/workflows/release-notes.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: Checkout
12-
uses: actions/checkout@v3
12+
uses: actions/checkout@v4
1313
- name: Check release notes
1414
if: startsWith(github.head_ref, 'release/') == false
1515
uses: actualbudget/actions/release-notes/check@main

.github/workflows/test.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ jobs:
1111
test:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v4
1515
- name: Install node
16-
uses: actions/setup-node@v1
16+
uses: actions/setup-node@v4
1717
with:
1818
node-version: 18
1919
- name: Cache
20-
uses: actions/cache@v2
20+
uses: actions/cache@v4
2121
id: cache
2222
with:
2323
path: '**/node_modules'

upcoming-release-notes/307.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
category: Maintenance
3+
authors: [MatissJanis]
4+
---
5+
6+
Upgrade deprecated github actions

0 commit comments

Comments
 (0)