Skip to content

Commit cbe4739

Browse files
author
Ayaz Salikhov
committed
Add workflow to automatically update dockerhub overview
1 parent fb12426 commit cbe4739

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/hub-overview.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Update dockerhub overviews
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- main
8+
paths:
9+
- "base-notebook/README.md"
10+
- "minimal-notebook/README.md"
11+
- "r-notebook/README.md"
12+
- "scipy-notebook/README.md"
13+
- "tensorflow-notebook/README.md"
14+
- "datascience-notebook/README.md"
15+
- "pyspark-notebook/README.md"
16+
- "all-spark-notebook/README.md"
17+
18+
jobs:
19+
update-dockerhub-overview:
20+
name: Update dockerhub overviews
21+
runs-on: ubuntu-latest
22+
if: >
23+
!contains(github.event.head_commit.message, 'ci skip') &&
24+
!contains(github.event.pull_request.title, 'ci skip')
25+
26+
steps:
27+
- name: Clone Main Repo
28+
uses: actions/checkout@v2
29+
with:
30+
path: main
31+
32+
- name: push README to Dockerhub for base-notebook
33+
uses: christian-korneck/update-container-description-action@d36005551adeaba9698d8d67a296bd16fa91f8e8 # dependabot updates to latest release
34+
env:
35+
DOCKER_USER: ${{secrets.DOCKERHUB_USERNAME}}
36+
DOCKER_PASS: ${{secrets.DOCKERHUB_TOKEN}}
37+
with:
38+
destination_container_repo: jupyter/base-notebook
39+
provider: dockerhub
40+
short_description: "Small base image for Jupyter Notebook stacks from https://github.com/jupyter/docker-stacks"
41+
readme_file: "base-notebook/README.md"

0 commit comments

Comments
 (0)