Skip to content

Commit 63c9218

Browse files
authored
Add Docker Hub categories (#2446)
* Add repo metadata, start with categories! scripts for checking repo categories, updating the canonical set added categories to push.pl * Add initial set of semi-acurate categories * Adjustments following tianon's review * Simplify metadata.sh use cases (CI or interactive); just diff and check all the time Update README.md about metadata.sh usage * Unify the categories checks into one jq expressions * Update initial categories * Link to Docker docs for categories; minor categories script adjustments
1 parent 4159546 commit 63c9218

File tree

155 files changed

+1221
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

155 files changed

+1221
-0
lines changed

.ci/check-metadata.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/env bash
2+
set -Eeuo pipefail
3+
4+
cd "$(dirname "$(readlink -f "$BASH_SOURCE")")/.."
5+
6+
# metadata.sh takes directories with a 'metadata.json' in them
7+
# metadata.json is expected in every repo
8+
# "." so that the canonical source metadata.json is checked too
9+
./metadata.sh */ .

.github/workflows/ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,8 @@ jobs:
4646
fetch-depth: 0
4747
- run: .ci/check-pr-no-readme.sh
4848
if: ${{ github.event_name == 'pull_request' }}
49+
metadata:
50+
runs-on: ubuntu-latest
51+
steps:
52+
- uses: actions/checkout@v3
53+
- run: .ci/check-metadata.sh

README.md

Lines changed: 13 additions & 0 deletions

adminer/metadata.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"hub": {
3+
"categories": [
4+
"databases-and-storage"
5+
]
6+
}
7+
}

aerospike/metadata.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"hub": {
3+
"categories": [
4+
"databases-and-storage"
5+
]
6+
}
7+
}

almalinux/metadata.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"hub": {
3+
"categories": [
4+
"operating-systems"
5+
]
6+
}
7+
}

alpine/metadata.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"hub": {
3+
"categories": [
4+
"operating-systems"
5+
]
6+
}
7+
}

alt/metadata.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"hub": {
3+
"categories": [
4+
"operating-systems"
5+
]
6+
}
7+
}

amazoncorretto/metadata.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"hub": {
3+
"categories": [
4+
"languages-and-frameworks"
5+
]
6+
}
7+
}

amazonlinux/metadata.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"hub": {
3+
"categories": [
4+
"operating-systems"
5+
]
6+
}
7+
}

0 commit comments

Comments
 (0)