mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-14 13:32:56 +00:00
Some fixes for push step
This commit is contained in:
5
.github/actions/load-image/action.yml
vendored
5
.github/actions/load-image/action.yml
vendored
@@ -14,6 +14,11 @@ inputs:
|
||||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
# Self-hosted runners share a state (whole VM) between runs
|
||||
- name: Cleanup unwanted docker images 🗑️
|
||||
run: docker system prune --all --force
|
||||
shell: bash
|
||||
|
||||
- name: Download built image 📥
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
|
@@ -31,12 +31,6 @@ jobs:
|
||||
with:
|
||||
platform: ${{ inputs.platform }}
|
||||
|
||||
# Self-hosted runners share a state (whole VM) between runs
|
||||
- name: Cleanup unwanted docker images 🗑️
|
||||
run: docker system prune --all --force
|
||||
shell: bash
|
||||
if: always()
|
||||
|
||||
- name: Load parent built image to Docker 📥
|
||||
if: ${{ inputs.parentImage != '' }}
|
||||
uses: ./.github/actions/load-image
|
||||
@@ -67,7 +61,7 @@ jobs:
|
||||
retention-days: 3
|
||||
|
||||
# Self-hosted runners share a state (whole VM) between runs
|
||||
- name: Cleanup built artifacts 🗑️
|
||||
- name: Cleanup artifacts 🗑️
|
||||
run: |
|
||||
rm -f /tmp/${{ inputs.image }}-${{ inputs.platform }}.tar
|
||||
docker system prune --all --force
|
||||
|
@@ -69,3 +69,12 @@ jobs:
|
||||
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' || github.event_name == 'schedule'
|
||||
run: docker push --all-tags jupyter/${{ matrix.image }}
|
||||
shell: bash
|
||||
|
||||
# Self-hosted runners share a state (whole VM) between runs
|
||||
- name: Cleanup artifacts 🗑️
|
||||
run: |
|
||||
rm -rf /tmp/hist_lines/
|
||||
rm -rf /tmp/manifests/
|
||||
docker system prune --all --force
|
||||
shell: bash
|
||||
if: always()
|
||||
|
56
.github/workflows/docker.yml
vendored
56
.github/workflows/docker.yml
vendored
@@ -190,6 +190,33 @@ jobs:
|
||||
platform: amd64
|
||||
runsOn: ubuntu-latest
|
||||
|
||||
aarch64-images-tag-push:
|
||||
needs:
|
||||
[
|
||||
aarch64-base,
|
||||
aarch64-minimal,
|
||||
aarch64-scipy,
|
||||
aarch64-r,
|
||||
aarch64-pyspark,
|
||||
aarch64-all-spark,
|
||||
]
|
||||
uses: ./.github/workflows/docker-tag-manifest-push.yml
|
||||
with:
|
||||
platform: aarch64
|
||||
runsOn: self-hosted
|
||||
# https://docs.github.com/en/actions/using-workflows/reusing-workflows#limitations
|
||||
# The strategy property is not supported in any job that calls a reusable workflow
|
||||
# Using the workaround: https://github.community/t/reusable-workflow-with-strategy-matrix/205676/2
|
||||
images: >-
|
||||
[
|
||||
"base-notebook",
|
||||
"minimal-notebook",
|
||||
"scipy-notebook",
|
||||
"r-notebook",
|
||||
"pyspark-notebook",
|
||||
"all-spark-notebook"
|
||||
]
|
||||
|
||||
amd64-images-tag-push:
|
||||
needs:
|
||||
[
|
||||
@@ -221,33 +248,6 @@ jobs:
|
||||
"all-spark-notebook"
|
||||
]
|
||||
|
||||
aarch64-images-tag-push:
|
||||
needs:
|
||||
[
|
||||
aarch64-base,
|
||||
aarch64-minimal,
|
||||
aarch64-scipy,
|
||||
aarch64-r,
|
||||
aarch64-pyspark,
|
||||
aarch64-all-spark,
|
||||
]
|
||||
uses: ./.github/workflows/docker-tag-manifest-push.yml
|
||||
with:
|
||||
platform: amd64
|
||||
runsOn: ubuntu-latest
|
||||
# https://docs.github.com/en/actions/using-workflows/reusing-workflows#limitations
|
||||
# The strategy property is not supported in any job that calls a reusable workflow
|
||||
# Using the workaround: https://github.community/t/reusable-workflow-with-strategy-matrix/205676/2
|
||||
images: >-
|
||||
[
|
||||
"base-notebook",
|
||||
"minimal-notebook",
|
||||
"scipy-notebook",
|
||||
"r-notebook",
|
||||
"pyspark-notebook",
|
||||
"all-spark-notebook"
|
||||
]
|
||||
|
||||
wiki-update:
|
||||
needs: [amd64-images-tag-push, aarch64-images-tag-push]
|
||||
needs: [aarch64-images-tag-push, amd64-images-tag-push]
|
||||
uses: ./.github/workflows/docker-wiki-update.yml
|
||||
|
Reference in New Issue
Block a user