|
1 |
| -name: Create and publish a Docker image |
| 1 | +name: Publish Docker images |
2 | 2 | on:
|
3 | 3 | workflow_run:
|
4 | 4 | workflows: [ "Rust" ]
|
|
11 | 11 | IMAGE_NAME: ${{ github.repository }}
|
12 | 12 |
|
13 | 13 | jobs:
|
14 |
| - build-and-push-image: |
15 |
| - runs-on: ubuntu-latest |
16 |
| - if: ${{ github.event.workflow_run.conclusion == 'success' }} |
| 14 | + build: |
| 15 | + strategy: |
| 16 | + fail-fast: false |
| 17 | + matrix: |
| 18 | + os: [ubuntu-24.04, ubuntu-24.04-arm] |
17 | 19 |
|
18 | 20 | permissions:
|
19 | 21 | contents: read
|
20 | 22 | packages: write
|
21 | 23 | attestations: write
|
22 | 24 | id-token: write
|
23 | 25 |
|
| 26 | + runs-on: ${{ matrix.os }} |
| 27 | + if: ${{ github.event.workflow_run.conclusion == 'success' }} |
24 | 28 | steps:
|
25 | 29 | - name: Checkout repository
|
26 | 30 | uses: actions/checkout@v4
|
27 | 31 |
|
28 | 32 | - name: Log in to the Container registry
|
29 |
| - uses: docker/login-action@327cd5a69de6c009b9ce71bce8395f28e651bf99 |
| 33 | + uses: docker/login-action@v3 |
30 | 34 | with:
|
31 | 35 | registry: ${{ env.REGISTRY }}
|
32 | 36 | username: ${{ github.actor }}
|
33 | 37 | password: ${{ secrets.GITHUB_TOKEN }}
|
34 | 38 |
|
35 | 39 | - name: Extract metadata (tags, labels) for Docker
|
36 | 40 | id: meta
|
37 |
| - uses: docker/metadata-action@902fa8ec7d6ecbf8d84d538b9b233a880e428804 |
| 41 | + uses: docker/metadata-action@v5 |
38 | 42 | with:
|
39 | 43 | images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
40 | 44 |
|
41 |
| - - name: Sync theme submodule |
42 |
| - run: git submodule sync && git submodule update --init --recursive |
| 45 | + - name: Set up Docker Buildx |
| 46 | + uses: docker/setup-buildx-action@v3 |
43 | 47 |
|
44 | 48 | - name: Build and push Docker image
|
45 | 49 | id: push
|
46 |
| - uses: docker/build-push-action@471d1dc4e07e5cdedd4c2171150001c434f0b7a4 |
| 50 | + uses: docker/build-push-action@v6 |
47 | 51 | with:
|
48 | 52 | context: .
|
49 | 53 | push: true
|
|
0 commit comments