Skip to content

Commit 2619990

Browse files
authored
chore: modernize GitHub Actions workflows (#1)
1 parent 725e9ad commit 2619990

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/docker.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
push:
55
branches: [master]
66

7+
permissions:
8+
contents: read
9+
710
jobs:
811
docker:
912
runs-on: ubuntu-latest
@@ -19,22 +22,22 @@ jobs:
1922

2023
steps:
2124
- name: Checkout
22-
uses: actions/checkout@v2
25+
uses: actions/checkout@v4
2326

2427
- name: Login to DockerHub
25-
uses: docker/login-action@v1
28+
uses: docker/login-action@v3
2629
with:
2730
username: ${{ secrets.DOCKERHUB_USERNAME }}
2831
password: ${{ secrets.DOCKERHUB_TOKEN }}
2932

3033
- name: Set up QEMU
31-
uses: docker/setup-qemu-action@v1
34+
uses: docker/setup-qemu-action@v3
3235

3336
- name: Set up Docker Buildx
34-
uses: docker/setup-buildx-action@v1
37+
uses: docker/setup-buildx-action@v3
3538

3639
- name: Build and push
37-
uses: docker/build-push-action@v2
40+
uses: docker/build-push-action@v6
3841
with:
3942
context: ${{ matrix.context }}
4043
push: true

0 commit comments

Comments
 (0)