Skip to content

Commit 3afb4c5

Browse files
committed
CI: modernize
1 parent 32e1392 commit 3afb4c5

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

.github/workflows/docker.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
name: Docker
22

33
on:
4+
workflow_dispatch:
5+
46
push:
5-
branches: master
7+
branches: ["master"]
68

79
jobs:
810
docker:
@@ -27,30 +29,30 @@ jobs:
2729

2830
steps:
2931
- name: Checkout
30-
uses: actions/checkout@v2
32+
uses: actions/checkout@v4
3133

3234
- name: Login to DockerHub
33-
uses: docker/login-action@v1
35+
uses: docker/login-action@v3
3436
with:
3537
username: ${{ secrets.DOCKERHUB_USERNAME }}
3638
password: ${{ secrets.DOCKERHUB_TOKEN }}
3739

3840
- name: Set up QEMU
39-
uses: docker/setup-qemu-action@v1
41+
uses: docker/setup-qemu-action@v3
4042

4143
- name: Set up Docker Buildx
42-
uses: docker/setup-buildx-action@v1
44+
uses: docker/setup-buildx-action@v3
4345

4446
- name: Cache Docker layers
45-
uses: actions/cache@v2
47+
uses: actions/cache@v4
4648
with:
4749
path: /tmp/.buildx-cache
4850
key: ${{ runner.os }}-buildx-${{ github.sha }}-${{ matrix.version }}
4951
restore-keys: |
5052
${{ runner.os }}-buildx-${{ github.sha }}-${{ matrix.version }}
5153
5254
- name: Build and push
53-
uses: docker/build-push-action@v2
55+
uses: docker/build-push-action@v6
5456
with:
5557
file: ${{ matrix.folder }}/Dockerfile
5658
push: true

0 commit comments

Comments
 (0)