Skip to content

Commit

Permalink
Add image name
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorific committed Nov 19, 2023
1 parent 0619d1b commit 0210fe8
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,32 @@ jobs:
- name: Run tests on the image with cinc-auditor
run: |
$(git rev-parse --show-toplevel)/bin/test.sh
- name: Build and push
uses: docker/bake-action@v4
with:
workdir: ${{ matrix.image }}
push: ${{ github.event_name != 'pull_request' }}

- name: Get the image name
if: github.event_name != 'pull_request'
id: image_description
run: |
echo "image_name=$(docker buildx bake --print 2> /dev/null | jq -r '.target.release.labels."org.opencontainers.image.title"')" >> $GITHUB_ENV
- name: Get the image description
if: github.event_name != 'pull_request'
id: image_description
run: |
echo "image_description=$(docker buildx bake --print 2> /dev/null | jq -r '.target.release.labels."org.opencontainers.image.description"')" >> $GITHUB_ENV
- name: Update Docker Hub Description
if: github.event_name != 'pull_request'
uses: peter-evans/dockerhub-description@v3
with:
username: ${{ secrets.CONTAINER_REGISTRY_USERNAME }}
password: ${{ secrets.CONTAINER_DESCRIPTION_PASSWORD }}
repository: boxcutter/${{ env.image_name }}
short-description: ${{ env.image_description }}
readme-filepath: ${{ matrix.image }}/README.md

1 change: 1 addition & 0 deletions aws-cli/docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,6 @@ target "default" {
"org.opencontainers.image.source" = "https://github.com/polymathrobotics/oci"
"org.opencontainers.image.licenses" = "Apache-2.0"
"org.opencontainers.image.description" = "AWS command-line interface."
"org.opencontainers.image.title" = "aws-cli"
}
}

0 comments on commit 0210fe8

Please sign in to comment.