Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Github Action that publish descriptions for dockerhub repos #33

Closed
wants to merge 21 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/docker-info-page-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Docker Info Page Publish
on:
push:
branches: [ "main" ]
jobs:
setup-matrix:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- uses: actions/checkout@v4
- name: Set matrix data
id: set-matrix
run: echo "matrix=$(jq -c . < .github/workflows/dockerhub-readmes.json)" >> $GITHUB_OUTPUT
PublishDockerHubDescription:
runs-on: ubuntu-latest
needs: setup-matrix
strategy:
matrix: ${{ fromJson(needs.setup-matrix.outputs.matrix) }}
fail-fast: false
steps:
- uses: actions/checkout@v4
- uses: peter-evans/dockerhub-description@v4
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
repository: ${{ matrix.readmes.repo-name }}
readme-filepath: ${{ matrix.readmes.fname }}
6 changes: 6 additions & 0 deletions .github/workflows/dockerhub-readmes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"readmes": [
{"fname": "./docs/dockerhub/intel-extension-for-pytorch.md","repo-name": "intel/intel-extension-for-pytorch"},
{"fname": "./docs/dockerhub/intel-extension-for-tensorflow.md", "repo-name": "intel/intel-extension-for-tensorflow"}
]
}
Loading