Skip to content

Commit 904f911

Browse files
authored
Merge pull request #9 from csdev/node20-actions
chore: update github actions
2 parents afdd648 + c7c6bc4 commit 904f911

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

.github/workflows/docker.yml

+11-10
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
pull_request:
55
push:
66
branches:
7+
- 'main'
78
- 'master'
89
tags:
910
- 'v*'
@@ -26,11 +27,11 @@ jobs:
2627
steps:
2728
-
2829
name: Checkout
29-
uses: actions/checkout@v3
30+
uses: actions/checkout@v4
3031
-
3132
name: Docker meta
3233
id: meta
33-
uses: docker/metadata-action@v4
34+
uses: docker/metadata-action@v5
3435
with:
3536
images: ${{ env.IMAGE_NAME }}
3637
tags: |
@@ -40,13 +41,13 @@ jobs:
4041
type=semver,pattern={{major}},enable=${{ !startsWith(github.ref, 'refs/tags/v0.') }}
4142
-
4243
name: Set up QEMU
43-
uses: docker/setup-qemu-action@v2
44+
uses: docker/setup-qemu-action@v3
4445
-
4546
name: Set up Docker Buildx
46-
uses: docker/setup-buildx-action@v2
47+
uses: docker/setup-buildx-action@v3
4748
-
4849
name: Build dev image
49-
uses: docker/build-push-action@v4
50+
uses: docker/build-push-action@v5
5051
with:
5152
context: .
5253
file: ./build/dev/Dockerfile
@@ -62,13 +63,13 @@ jobs:
6263
-
6364
name: Login to Docker Hub
6465
if: github.event_name != 'pull_request'
65-
uses: docker/login-action@v2
66+
uses: docker/login-action@v3
6667
with:
6768
username: ${{ secrets.DOCKERHUB_USERNAME }}
6869
password: ${{ secrets.DOCKERHUB_TOKEN }}
6970
-
7071
name: Build and push prod image
71-
uses: docker/build-push-action@v4
72+
uses: docker/build-push-action@v5
7273
with:
7374
context: .
7475
file: ./build/prod/Dockerfile
@@ -95,13 +96,13 @@ jobs:
9596
steps:
9697
-
9798
name: Checkout
98-
uses: actions/checkout@v3
99+
uses: actions/checkout@v4
99100
-
100101
name: Set up QEMU
101-
uses: docker/setup-qemu-action@v2
102+
uses: docker/setup-qemu-action@v3
102103
-
103104
name: Login to Docker Hub
104-
uses: docker/login-action@v2
105+
uses: docker/login-action@v3
105106
with:
106107
username: ${{ secrets.DOCKERHUB_USERNAME }}
107108
password: ${{ secrets.DOCKERHUB_TOKEN }}

0 commit comments

Comments
 (0)