Skip to content

Commit

Permalink
feat: This github action updates the description of a container repo …
Browse files Browse the repository at this point in the history
…on Docker Hub, Quay or Harbor v2 from a README file.
  • Loading branch information
snowdream committed Oct 24, 2024
1 parent 4199f67 commit ff6592b
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 26 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/description.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: GitHub Actions Description Updater

on:
push:
branches:
- main
paths:
- README.md
- .github/workflows/description.yml

jobs:
dockerHubDescription:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
with:
# [Required] Access token with `workflow` scope.
token: ${{ secrets.WORKFLOW_SECRET }}
- name: Docker Hub Description
uses: christian-korneck/update-container-description-action@v1
env:
DOCKER_USER: ${{ secrets.DOCKER_HUB_USERNAME }}
DOCKER_PASS: ${{ secrets.DOCKER_HUB_TOKEN }}
with:
destination_container_repo: snowdreamtech/rust
provider: dockerhub
short_description: ${{ github.event.repository.description }}
readme_file: "README.md"
- name: Quay.io Description
uses: christian-korneck/update-container-description-action@v1
env:
DOCKER_APIKEY: ${{ secrets.QUAY_API_TOKEN }}
with:
destination_container_repo: quay.io/snowdreamtech/rust
provider: quay
readme_file: "README.md"
26 changes: 0 additions & 26 deletions .github/workflows/dockerhub-description.yml

This file was deleted.

0 comments on commit ff6592b

Please sign in to comment.