Skip to content

Commit

Permalink
feat: Added labels to all images
Browse files Browse the repository at this point in the history
  • Loading branch information
dploeger committed Sep 18, 2023
1 parent e602977 commit b538e8f
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,18 @@ jobs:
run: |
cat build/Dockerfile.prefix > Dockerfile
cat "flavour/${{ matrix.flavour.name }}/Dockerfile.flavour" >> Dockerfile
cat build/Dockerfile.suffix >> Dockerfile
# Download mo
curl -sSL https://raw.githubusercontent.com/tests-always-included/mo/master/mo -o mo
chmod +x mo
export BUILD_DATE=$(date -Ins)
cat build/Dockerfile.suffix | ./mo >> Dockerfile
rm mo
env:
FLAVOUR: "${{ matrix.flavour.name }}"

- name: Clean up Docker
run: |
Expand Down
11 changes: 11 additions & 0 deletions build/Dockerfile.suffix
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,14 @@ USER cloudcontrol
ENTRYPOINT ["/usr/local/bin/cloudcontrol"]
WORKDIR /home/cloudcontrol
CMD ["serve"]

# Labels

LABEL io.artifacthub.package.readme-url=https://github.com/dodevops/cloudcontrol
LABEL org.opencontainers.image.created={{BUILD_DATE}}
LABEL org.opencontainers.image.description="The cloud engineer's toolbox - {{FLAVOUR}} flavour"
LABEL org.opencontainers.image.documentation=https://github.com/dodevops/cloudcontrol
LABEL org.opencontainers.image.source=https://github.com/dodevops/cloudcontrol
LABEL org.opencontainers.image.title="cloudcontrol-{{FLAVOUR}}"
LABEL org.opencontainers.image.url=https://github.com/dodevops/cloudcontrol
LABEL org.opencontainers.image.vendor="DO! DevOps"

0 comments on commit b538e8f

Please sign in to comment.