@@ -29,26 +29,10 @@ jobs:
29
29
- uses : docker/metadata-action@v4
30
30
id : meta
31
31
with :
32
- images : |
33
- ${{ github.repository }}
34
- ghcr.io/${{ github.repository }}
35
- tags : |
36
- type=semver,pattern={{version}}
37
- type=edge
38
32
labels : |
39
- org.opencontainers.image.title=Mg
40
- org.opencontainers.image.description=Micro Emacs text editor from OpenBSD
41
- org.opencontainers.image.url=https://github.com/troglobit/mg
42
- org.opencontainers.image.documentation=https://man.troglobit.com/man1/mg.1.html
43
33
org.opencontainers.image.source=https://github.com/troglobit/mg/tree/${{ github.sha }}/
44
34
- uses : docker/setup-qemu-action@v2
45
35
- uses : docker/setup-buildx-action@v2
46
- - name : Log in to GHCR
47
- uses : docker/login-action@v2
48
- with :
49
- registry : ghcr.io
50
- username : ${{ github.repository_owner }}
51
- password : ${{ secrets.GITHUB_TOKEN }}
52
36
- name : Log in to Docker Hub
53
37
uses : docker/login-action@v2
54
38
with :
57
41
- uses : docker/build-push-action@v4
58
42
id : build
59
43
with :
60
- build-args : |
61
- DOCKER_METADATA_OUTPUT_JSON
62
44
context : .
63
45
labels : ${{ steps.meta.outputs.labels }}
64
46
platforms : ${{ matrix.platform }}
@@ -69,10 +51,10 @@ jobs:
69
51
push-by-digest=true,
70
52
push=true,
71
53
annotation-manifest-descriptor.org.opencontainers.image.title=Mg,
72
- annotation-manifest-descriptor.org.opencontainers.image.description=Micro Emacs text editor for ${{ matrix.platform }} ,
54
+ annotation-manifest-descriptor.org.opencontainers.image.description=Micro Emacs text editor,
73
55
annotation-manifest-descriptor.org.opencontainers.image.url=https://github.com/troglobit/mg,
74
56
annotation-manifest-descriptor.org.opencontainers.image.licenses=Unlicense,
75
- annotation-manifest-descriptor.org.opencontainers.image.revision=${GITHUB_SHA }
57
+ annotation-manifest-descriptor.org.opencontainers.image.revision=${{ github.sha } }
76
58
- name : Export digest
77
59
run : |
78
60
mkdir -p /tmp/digests
0 commit comments