mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-17 23:12: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:
|
||||
runs-on: ${{ matrix.runsOn }}
|
||||
needs: generate-matrix
|
||||
if: github.repository == 'jupyter/docker-stacks'
|
||||
if: github.repository_owner == 'jupyter'
|
||||
|
||||
steps:
|
||||
- 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:
|
||||
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:
|
||||
workflow_call:
|
||||
@@ -47,13 +48,13 @@ jobs:
|
||||
shell: bash
|
||||
|
||||
- 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
|
||||
with:
|
||||
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||
|
||||
- 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/
|
||||
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:
|
||||
REGISTRY: docker.io
|
||||
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:
|
||||
workflow_call:
|
||||
@@ -37,7 +38,7 @@ jobs:
|
||||
platform: ${{ inputs.platform }}
|
||||
|
||||
- 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
|
||||
with:
|
||||
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 }}
|
||||
|
||||
- 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 }}
|
||||
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
|
||||
# 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:
|
||||
workflow_call:
|
||||
|
||||
@@ -37,7 +40,7 @@ jobs:
|
||||
shell: bash
|
||||
|
||||
- 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
|
||||
with:
|
||||
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:
|
||||
runs-on: ubuntu-latest
|
||||
name: update-overview (${{matrix.image}})
|
||||
if: github.repository == 'jupyter/docker-stacks'
|
||||
if: github.repository_owner == 'jupyter' || github.repository_owner == 'mathbunnyru'
|
||||
|
||||
steps:
|
||||
- name: Checkout Repo ⚡️
|
||||
|
2
.github/workflows/sphinx.yml
vendored
2
.github/workflows/sphinx.yml
vendored
@@ -26,7 +26,7 @@ jobs:
|
||||
build-docs:
|
||||
permissions:
|
||||
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
|
||||
|
||||
steps:
|
||||
|
Reference in New Issue
Block a user