mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-18 15:32:56 +00:00
Build all workflows in my fork (#2012)
* Build all workflows in my fork * Build contributed recipes only in jupyter, because I don't have aarch64 runners
This commit is contained in:
2
.github/workflows/contributed-recipes.yml
vendored
2
.github/workflows/contributed-recipes.yml
vendored
@@ -35,7 +35,7 @@ jobs:
|
|||||||
test-recipes:
|
test-recipes:
|
||||||
runs-on: ${{ matrix.runsOn }}
|
runs-on: ${{ matrix.runsOn }}
|
||||||
needs: generate-matrix
|
needs: generate-matrix
|
||||||
if: github.repository == 'jupyter/docker-stacks'
|
if: github.repository_owner == 'jupyter'
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Repo ⚡️
|
- name: Checkout Repo ⚡️
|
||||||
|
5
.github/workflows/docker-merge-tags.yml
vendored
5
.github/workflows/docker-merge-tags.yml
vendored
@@ -2,6 +2,7 @@ name: Download images tags from GitHub artifacts and create multi-platform manif
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
OWNER: ${{ github.repository_owner }}
|
OWNER: ${{ github.repository_owner }}
|
||||||
|
PUSH_TO_REGISTRY: (github.repository_owner == 'jupyter' || github.repository_owner == 'mathbunnyru') && (github.ref == 'refs/heads/main' || github.event_name == 'schedule')
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
@@ -47,13 +48,13 @@ jobs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Login to Registry 🔐
|
- name: Login to Registry 🔐
|
||||||
if: github.repository == 'jupyter/docker-stacks' && (github.ref == 'refs/heads/main' || github.event_name == 'schedule')
|
if: env.PUSH_TO_REGISTRY
|
||||||
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0
|
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.REGISTRY_USERNAME }}
|
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||||
|
|
||||||
- name: Merge tags for the images 🔀
|
- name: Merge tags for the images 🔀
|
||||||
if: github.repository == 'jupyter/docker-stacks' && (github.ref == 'refs/heads/main' || github.event_name == 'schedule')
|
if: env.PUSH_TO_REGISTRY
|
||||||
run: python3 -m tagging.merge_tags --short-image-name ${{ inputs.image }} --tags-dir /tmp/jupyter/tags/
|
run: python3 -m tagging.merge_tags --short-image-name ${{ inputs.image }} --tags-dir /tmp/jupyter/tags/
|
||||||
shell: bash
|
shell: bash
|
||||||
|
5
.github/workflows/docker-tag-push.yml
vendored
5
.github/workflows/docker-tag-push.yml
vendored
@@ -3,6 +3,7 @@ name: Download Docker image and its tags from GitHub artifacts, apply them and p
|
|||||||
env:
|
env:
|
||||||
REGISTRY: docker.io
|
REGISTRY: docker.io
|
||||||
OWNER: ${{ github.repository_owner }}
|
OWNER: ${{ github.repository_owner }}
|
||||||
|
PUSH_TO_REGISTRY: (github.repository_owner == 'jupyter' || github.repository_owner == 'mathbunnyru') && (github.ref == 'refs/heads/main' || github.event_name == 'schedule')
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
@@ -37,7 +38,7 @@ jobs:
|
|||||||
platform: ${{ inputs.platform }}
|
platform: ${{ inputs.platform }}
|
||||||
|
|
||||||
- name: Login to Registry 🔐
|
- name: Login to Registry 🔐
|
||||||
if: github.repository == 'jupyter/docker-stacks' && (github.ref == 'refs/heads/main' || github.event_name == 'schedule')
|
if: env.PUSH_TO_REGISTRY
|
||||||
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0
|
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.REGISTRY_USERNAME }}
|
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||||
@@ -52,6 +53,6 @@ jobs:
|
|||||||
run: python3 -m tagging.apply_tags --short-image-name ${{ inputs.image }} --tags-dir /tmp/jupyter/tags/ --platform ${{ inputs.platform }} --registry ${{ env.REGISTRY }} --owner ${{ env.OWNER }}
|
run: python3 -m tagging.apply_tags --short-image-name ${{ inputs.image }} --tags-dir /tmp/jupyter/tags/ --platform ${{ inputs.platform }} --registry ${{ env.REGISTRY }} --owner ${{ env.OWNER }}
|
||||||
|
|
||||||
- name: Push Images to Registry 📤
|
- name: Push Images to Registry 📤
|
||||||
if: github.repository == 'jupyter/docker-stacks' && (github.ref == 'refs/heads/main' || github.event_name == 'schedule')
|
if: env.PUSH_TO_REGISTRY
|
||||||
run: docker push --all-tags ${{ env.OWNER }}/${{ inputs.image }}
|
run: docker push --all-tags ${{ env.OWNER }}/${{ inputs.image }}
|
||||||
shell: bash
|
shell: bash
|
||||||
|
5
.github/workflows/docker-wiki-update.yml
vendored
5
.github/workflows/docker-wiki-update.yml
vendored
@@ -2,6 +2,9 @@ name: Download build manifests from GitHub artifacts and push them to GitHub wik
|
|||||||
# We're doing everything in one workflow on purpose
|
# We're doing everything in one workflow on purpose
|
||||||
# This way we make sure we don't access wiki pages from several jobs simultaneously
|
# This way we make sure we don't access wiki pages from several jobs simultaneously
|
||||||
|
|
||||||
|
env:
|
||||||
|
PUSH_TO_REGISTRY: (github.repository_owner == 'jupyter' || github.repository_owner == 'mathbunnyru') && (github.ref == 'refs/heads/main' || github.event_name == 'schedule')
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
|
|
||||||
@@ -37,7 +40,7 @@ jobs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Push Wiki to GitHub 📤
|
- name: Push Wiki to GitHub 📤
|
||||||
if: github.repository == 'jupyter/docker-stacks' && (github.ref == 'refs/heads/main' || github.event_name == 'schedule')
|
if: env.PUSH_TO_REGISTRY
|
||||||
uses: stefanzweifel/git-auto-commit-action@8756aa072ef5b4a080af5dc8fef36c5d586e521d # v5.0.0
|
uses: stefanzweifel/git-auto-commit-action@8756aa072ef5b4a080af5dc8fef36c5d586e521d # v5.0.0
|
||||||
with:
|
with:
|
||||||
commit_message: "Automated wiki publish for ${{ github.sha }}"
|
commit_message: "Automated wiki publish for ${{ github.sha }}"
|
||||||
|
2
.github/workflows/registry-overviews.yml
vendored
2
.github/workflows/registry-overviews.yml
vendored
@@ -17,7 +17,7 @@ jobs:
|
|||||||
update-overview:
|
update-overview:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
name: update-overview (${{matrix.image}})
|
name: update-overview (${{matrix.image}})
|
||||||
if: github.repository == 'jupyter/docker-stacks'
|
if: github.repository_owner == 'jupyter' || github.repository_owner == 'mathbunnyru'
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Repo ⚡️
|
- name: Checkout Repo ⚡️
|
||||||
|
2
.github/workflows/sphinx.yml
vendored
2
.github/workflows/sphinx.yml
vendored
@@ -26,7 +26,7 @@ jobs:
|
|||||||
build-docs:
|
build-docs:
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
if: github.repository == 'jupyter/docker-stacks' || github.event_name != 'schedule'
|
if: github.repository_owner == 'jupyter' || github.repository_owner == 'mathbunnyru' || github.event_name != 'schedule'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
Reference in New Issue
Block a user