Skip to content

Commit

Permalink
Unify workflow syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
mathbunnyru committed Dec 11, 2022
1 parent a4f53d1 commit 7935ced
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 19 deletions.
1 change: 1 addition & 0 deletions .github/workflows/docker-build-test-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ on:
jobs:
build-test-upload:
runs-on: ${{ inputs.runsOn }}

steps:
- name: Checkout Repo ⚡️
uses: actions/checkout@v3
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/docker-merge-tags.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,12 @@ jobs:
with:
name: ${{ inputs.image }}-x86_64-tags
path: /tmp/tags/

- name: Download aarch64 tags file 📥
if: inputs.image != 'tensorflow-notebook'
uses: actions/download-artifact@v3
with:
name: ${{ inputs.image }}-aarch64-tags
path: /tmp/tags/

- name: Create an empty aarch64 tags file for tensorflow-notebook 💩
if: inputs.image == 'tensorflow-notebook'
run: touch /tmp/tags/aarch64-tensorflow-notebook.txt
Expand Down
30 changes: 15 additions & 15 deletions .github/workflows/hub-overview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,21 @@ jobs:
name: Update dockerhub overviews
runs-on: ubuntu-latest

steps:
- name: Checkout Repo ⚡️
uses: actions/checkout@v3

- name: Push README to Dockerhub 🐳
uses: christian-korneck/update-container-description-action@d36005551adeaba9698d8d67a296bd16fa91f8e8 # v1
env:
DOCKER_USER: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKER_PASS: ${{ secrets.DOCKERHUB_TOKEN }}
with:
destination_container_repo: ${{ env.OWNER }}/${{ matrix.image }}
provider: dockerhub
short_description: ${{ matrix.description }}
readme_file: ${{ matrix.image }}/README.md

strategy:
matrix:
include:
Expand All @@ -46,18 +61,3 @@ jobs:
description: "Python and Spark Jupyter Notebook Stack from https://github.com/jupyter/docker-stacks"
- image: all-spark-notebook
description: "Python, Scala, R and Spark Jupyter Notebook Stack from https://github.com/jupyter/docker-stacks"

steps:
- name: Checkout Repo ⚡️
uses: actions/checkout@v3

- name: Push README to Dockerhub 🐳
uses: christian-korneck/update-container-description-action@d36005551adeaba9698d8d67a296bd16fa91f8e8 # v1
env:
DOCKER_USER: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKER_PASS: ${{ secrets.DOCKERHUB_TOKEN }}
with:
destination_container_repo: ${{ env.OWNER }}/${{ matrix.image }}
provider: dockerhub
short_description: ${{ matrix.description }}
readme_file: ${{ matrix.image }}/README.md
4 changes: 2 additions & 2 deletions .github/workflows/sphinx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ on:
jobs:
build-docs:
name: Build Sphinx Documentation
if: github.repository == 'jupyter/docker-stacks' || github.event_name != 'schedule'
runs-on: ubuntu-latest
permissions:
contents: write
if: github.repository == 'jupyter/docker-stacks' || github.event_name != 'schedule'
runs-on: ubuntu-latest

steps:
- name: Checkout Repo ⚡️
Expand Down

0 comments on commit 7935ced

Please sign in to comment.