Skip to content

Commit 9e8b2dd

Browse files
authored
chore: modernize GitHub Actions workflows (#1)
1 parent 35af9ac commit 9e8b2dd

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/docker.yml

Lines changed: 9 additions & 6 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: Cache Docker layers
37-
uses: actions/cache@v2
40+
uses: actions/cache@v4
3841
with:
3942
path: /tmp/.buildx-cache
4043
key: ${{ runner.os }}-buildx-${{ github.sha }}-${{ matrix.image }}
@@ -43,7 +46,7 @@ jobs:
4346
4447
- name: Build and push
4548
if: github.ref == 'refs/heads/master'
46-
uses: docker/build-push-action@v2
49+
uses: docker/build-push-action@v6
4750
with:
4851
context: ${{ matrix.image }}
4952
push: true

0 commit comments

Comments
 (0)