|
1 | 1 | name: Docker Build Images |
2 | 2 |
|
| 3 | +# Based on https://docs.docker.com/build/ci/github-actions/multi-platform/#distribute-build-across-multiple-runners |
| 4 | + |
3 | 5 | on: |
4 | 6 | schedule: |
5 | 7 | # Once every Wednesday at 00:00 |
|
9 | 11 | - master |
10 | 12 | paths: |
11 | 13 | - 'docker/**' |
12 | | - - '.github/workflows/vcpkg_docker_amd64.yml' |
| 14 | + - '.github/workflows/vcpkg_docker.yml' |
13 | 15 | pull_request: |
14 | 16 | paths: |
15 | 17 | - 'docker/**' |
16 | | - - '.github/workflows/vcpkg_docker_amd64.yml' |
| 18 | + - '.github/workflows/vcpkg_docker.yml' |
17 | 19 |
|
18 | 20 | concurrency: |
19 | 21 | group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} |
|
29 | 31 | strategy: |
30 | 32 | fail-fast: false |
31 | 33 | matrix: |
32 | | - container: |
33 | | - - { version: '22.04', codename: 'jammy' } |
34 | 34 | platform: |
35 | 35 | - linux/amd64 |
36 | 36 | - linux/arm64 |
|
49 | 49 | - name: Set up Docker Buildx |
50 | 50 | uses: docker/setup-buildx-action@v3 |
51 | 51 |
|
52 | | - - name: Log in to GitHub registry |
53 | | - run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin |
| 52 | + - name: Login to GHCR |
| 53 | + uses: docker/login-action@v3 |
| 54 | + with: |
| 55 | + registry: ghcr.io |
| 56 | + username: ${{ github.repository_owner }} |
| 57 | + password: ${{ secrets.GITHUB_TOKEN }} |
54 | 58 |
|
55 | 59 | - name: Generate Image Name |
56 | 60 | env: |
@@ -112,8 +116,12 @@ jobs: |
112 | 116 | with: |
113 | 117 | images: ${{ env.REGISTRY_IMAGE }} |
114 | 118 |
|
115 | | - - name: Log in to registry |
116 | | - run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin |
| 119 | + - name: Login to GHCR |
| 120 | + uses: docker/login-action@v3 |
| 121 | + with: |
| 122 | + registry: ghcr.io |
| 123 | + username: ${{ github.repository_owner }} |
| 124 | + password: ${{ secrets.GITHUB_TOKEN }} |
117 | 125 |
|
118 | 126 | - name: Create manifest list and push |
119 | 127 | working-directory: /tmp/digests |
|
0 commit comments