From 3d5d90c12e9a02b4dfacbbea618b9280c8f8db9d Mon Sep 17 00:00:00 2001 From: Mischa Taylor Date: Sat, 18 Nov 2023 11:12:08 -0500 Subject: [PATCH] Update Docker Hub description for hadolint --- .github/workflows/bootstrap.yml | 9 +++++++++ hadolint/docker-bake.hcl | 5 +++++ 2 files changed, 14 insertions(+) diff --git a/.github/workflows/bootstrap.yml b/.github/workflows/bootstrap.yml index 257873a..4090c19 100644 --- a/.github/workflows/bootstrap.yml +++ b/.github/workflows/bootstrap.yml @@ -26,13 +26,22 @@ jobs: uses: docker/setup-buildx-action@v3 - name: Login to DockerHub + if: github.event_name == 'push' uses: docker/login-action@v3 with: username: ${{ secrets.CONTAINER_REGISTRY_USERNAME }} password: ${{ secrets.CONTAINER_REGISTRY_PASSWORD }} - name: Build and push + if: github.event_name == 'push' uses: docker/bake-action@v4 with: workdir: hadolint push: true + + - name: Update Docker Hub Description + if: github.event_name == 'push' + uses: peter-evans/dockerhub-description@v3 + with: + username: ${{ secrets.CONTAINER_REGISTRY_USERNAME }} + password: ${{ secrets.CONTAINER_DESCRIPTION_PASSWORD }} diff --git a/hadolint/docker-bake.hcl b/hadolint/docker-bake.hcl index a9b2517..3ad39a3 100644 --- a/hadolint/docker-bake.hcl +++ b/hadolint/docker-bake.hcl @@ -42,4 +42,9 @@ group "default" { target "release" { inherits = ["_common"] platforms = ["linux/amd64", "linux/arm64/v8"] + labels = { + "org.opencontainers.image.source" = "https://github.com/polymathrobotics/oci" + "org.opencontainers.image.licenses" = "Apache-2.0" + "org.opencontainers.image.description" = "Dockerfile linter, validate inline bash, written in Haskell." + } }