Skip to content

Commit ee83d7b

Browse files
dploegerDennis Ploeger
authored andcommitted
feat: Added labels to all images
as required by Artifacthub https://artifacthub.io/docs/topics/repositories/container-images/
1 parent e602977 commit ee83d7b

2 files changed

Lines changed: 23 additions & 1 deletion

File tree

.github/workflows/image.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,18 @@ jobs:
7070
run: |
7171
cat build/Dockerfile.prefix > Dockerfile
7272
cat "flavour/${{ matrix.flavour.name }}/Dockerfile.flavour" >> Dockerfile
73-
cat build/Dockerfile.suffix >> Dockerfile
73+
74+
# Download mo
75+
curl -sSL https://raw.githubusercontent.com/tests-always-included/mo/master/mo -o mo
76+
chmod +x mo
77+
78+
export BUILD_DATE=$(date -Ins)
79+
80+
cat build/Dockerfile.suffix | ./mo >> Dockerfile
81+
82+
rm mo
83+
env:
84+
FLAVOUR: "${{ matrix.flavour.name }}"
7485

7586
- name: Clean up Docker
7687
run: |

build/Dockerfile.suffix

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,14 @@ USER cloudcontrol
2424
ENTRYPOINT ["/usr/local/bin/cloudcontrol"]
2525
WORKDIR /home/cloudcontrol
2626
CMD ["serve"]
27+
28+
# Labels
29+
30+
LABEL io.artifacthub.package.readme-url=https://github.com/dodevops/cloudcontrol
31+
LABEL org.opencontainers.image.created={{BUILD_DATE}}
32+
LABEL org.opencontainers.image.description="The cloud engineer's toolbox - {{FLAVOUR}} flavour"
33+
LABEL org.opencontainers.image.documentation=https://github.com/dodevops/cloudcontrol
34+
LABEL org.opencontainers.image.source=https://github.com/dodevops/cloudcontrol
35+
LABEL org.opencontainers.image.title="cloudcontrol-{{FLAVOUR}}"
36+
LABEL org.opencontainers.image.url=https://github.com/dodevops/cloudcontrol
37+
LABEL org.opencontainers.image.vendor="DO! DevOps"

0 commit comments

Comments
 (0)