Skip to content

Commit

Permalink
Update Docker Hub description for hadolint
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorific committed Nov 18, 2023
1 parent a6e3d95 commit 3d5d90c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/bootstrap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
5 changes: 5 additions & 0 deletions hadolint/docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -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."
}
}

0 comments on commit 3d5d90c

Please sign in to comment.