1
- name : Create and publish a Docker image
1
+ name : AMD Docker image
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 :
14
+ build :
15
15
runs-on : ubuntu-latest
16
16
if : ${{ github.event.workflow_run.conclusion == 'success' }}
17
17
@@ -26,27 +26,28 @@ jobs:
26
26
uses : actions/checkout@v4
27
27
28
28
- name : Log in to the Container registry
29
- uses : docker/login-action@327cd5a69de6c009b9ce71bce8395f28e651bf99
29
+ uses : docker/login-action@v3
30
30
with :
31
31
registry : ${{ env.REGISTRY }}
32
32
username : ${{ github.actor }}
33
33
password : ${{ secrets.GITHUB_TOKEN }}
34
34
35
35
- name : Extract metadata (tags, labels) for Docker
36
36
id : meta
37
- uses : docker/metadata-action@902fa8ec7d6ecbf8d84d538b9b233a880e428804
37
+ uses : docker/metadata-action@v5
38
38
with :
39
39
images : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
40
40
41
- - name : Sync theme submodule
42
- run : git submodule sync && git submodule update --init --recursive
41
+ - name : Set up Docker Buildx
42
+ uses : docker/setup-buildx-action@v3
43
43
44
44
- name : Build and push Docker image
45
45
id : push
46
- uses : docker/build-push-action@471d1dc4e07e5cdedd4c2171150001c434f0b7a4
46
+ uses : docker/build-push-action@v6
47
47
with :
48
48
context : .
49
49
push : true
50
+ platforms : ${{ matrix.platform }}
50
51
tags : ${{ steps.meta.outputs.tags }}
51
52
labels : ${{ steps.meta.outputs.labels }}
52
53
0 commit comments