Skip to content

Commit 3602391

Browse files
authored
chore: modernize GitHub Actions workflows (#2)
1 parent 2b87866 commit 3602391

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

.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
@@ -40,22 +43,22 @@ jobs:
4043

4144
steps:
4245
- name: Checkout
43-
uses: actions/checkout@v2
46+
uses: actions/checkout@v4
4447

4548
- name: Login to DockerHub
46-
uses: docker/login-action@v1
49+
uses: docker/login-action@v3
4750
with:
4851
username: ${{ secrets.DOCKERHUB_USERNAME }}
4952
password: ${{ secrets.DOCKERHUB_TOKEN }}
5053

5154
- name: Set up QEMU
52-
uses: docker/setup-qemu-action@v1
55+
uses: docker/setup-qemu-action@v3
5356

5457
- name: Set up Docker Buildx
55-
uses: docker/setup-buildx-action@v1
58+
uses: docker/setup-buildx-action@v3
5659

5760
- name: Build and push
58-
uses: docker/build-push-action@v2
61+
uses: docker/build-push-action@v6
5962
with:
6063
context: ./${{ matrix.version }}
6164
push: true

0 commit comments

Comments
 (0)