|
9 | 9 | runs-on: ubuntu-latest |
10 | 10 | steps: |
11 | 11 | - name: Checkout |
12 | | - uses: actions/checkout@v2 |
| 12 | + uses: actions/checkout@v4 |
13 | 13 | with: |
14 | 14 | submodules: true |
15 | 15 |
|
16 | 16 | - name: Set up QEMU |
17 | | - uses: docker/setup-qemu-action@v1 |
| 17 | + uses: docker/setup-qemu-action@v3 |
18 | 18 |
|
19 | 19 | - name: Set up Docker Buildx |
20 | | - uses: docker/setup-buildx-action@v1 |
| 20 | + uses: docker/setup-buildx-action@v3 |
21 | 21 |
|
22 | 22 | - name: Cache Docker layers |
23 | | - uses: actions/cache@v2 |
| 23 | + uses: actions/cache@v4 |
24 | 24 | with: |
25 | 25 | path: /tmp/.buildx-cache |
26 | 26 | key: ${{ runner.os }}-buildx-${{ github.sha }} |
27 | 27 | restore-keys: | |
28 | 28 | ${{ runner.os }}-buildx- |
29 | 29 |
|
30 | 30 | - name: Login to DockerHub |
31 | | - uses: docker/login-action@v1 |
| 31 | + uses: docker/login-action@v3 |
32 | 32 | with: |
33 | 33 | username: ${{ secrets.DOCKERHUB_USERNAME }} |
34 | 34 | password: ${{ secrets.DOCKERHUB_TOKEN }} |
35 | 35 |
|
36 | 36 | - name: Login to GitHub Container Registry |
37 | | - uses: docker/login-action@v1 |
| 37 | + uses: docker/login-action@v3 |
38 | 38 | with: |
39 | 39 | registry: ghcr.io |
40 | 40 | username: ${{ github.repository_owner }} |
41 | 41 | password: ${{ secrets.GITHUB_TOKEN }} |
42 | 42 |
|
43 | 43 | - name: Lower case for Docker Hub |
44 | 44 | id: dh_string |
45 | | - uses: ASzc/change-string-case-action@v1 |
| 45 | + uses: ASzc/change-string-case-action@v6 |
46 | 46 | with: |
47 | 47 | string: ${{ secrets.DOCKERHUB_USERNAME }}/${{ github.event.repository.name }} |
48 | 48 |
|
49 | 49 | - name: Lower case for ghcr |
50 | 50 | id: ghcr_string |
51 | | - uses: ASzc/change-string-case-action@v1 |
| 51 | + uses: ASzc/change-string-case-action@v6 |
52 | 52 | with: |
53 | 53 | string: ${{ github.event.repository.full_name }} |
54 | 54 |
|
55 | 55 | - name: Build and push |
56 | | - uses: docker/build-push-action@v2 |
| 56 | + uses: docker/build-push-action@v6 |
57 | 57 | with: |
58 | 58 | context: . |
59 | 59 | platforms: linux/arm,linux/amd64,linux/arm64 |
|
0 commit comments