Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(docker): remove redundant labels (#2285)
Motivation ---------- The github action [docker metatadata-action](https://github.com/docker/metadata-action/) sets a number of labels for us. We never properly set them in our CI and now they're redundant. If you do `docker inspect 2f6a43daaef6` you see this: ``` "Labels": { "maintainer": "[email protected]", "org.label-schema.build-date": "1970-01-01T00:00:00.00Z", "org.label-schema.description": "DreamMall Frontend", "org.label-schema.name": "dreammall:frontend", "org.label-schema.schema-version": "1.0", "org.label-schema.url": "https://github.com/dreammall-earth/dreammall.earth/tree/master/frontend", "org.label-schema.usage": "https://github.com/dreammall-earth/dreammall.earth/tree/master/frontend/README.md", "org.label-schema.vcs-ref": "0000000", "org.label-schema.vcs-url": "https://github.com/dreammall-earth/dreammall.earth/tree/master/frontend", "org.label-schema.vendor": "DreamMall", "org.label-schema.version": "0.0.0.0", "org.opencontainers.image.created": "2024-09-18T08:27:35.737Z", "org.opencontainers.image.description": "Dreammall.earth website & product page", "org.opencontainers.image.licenses": "Apache-2.0", "org.opencontainers.image.revision": "46cff6991647e13bbf41e4d7b182e3aa4e65265e", "org.opencontainers.image.source": "https://github.com/dreammall-earth/dreammall.earth", "org.opencontainers.image.title": "dreammall.earth", "org.opencontainers.image.url": "https://github.com/dreammall-earth/dreammall.earth", "org.opencontainers.image.version": "master" } }, ``` `org.opencontainers.image.created` is the `BUILD_DATE` `org.opencontainers.image.revision` is the `BUILD_COMMIT` `org.opencontainers.image.version` is currently the git branch and would be `BUILD_VERSION` if we would trigger the workflow with a tag. See here: https://github.com/docker/metadata-action?tab=readme-ov-file#json-output-object How to test ----------- 1. Nothing to test here
- Loading branch information