Some fixes for push step

This commit is contained in:
Ayaz Salikhov
2022-07-04 23:10:08 +04:00
parent 500e1a8509
commit 171c6c308d
4 changed files with 43 additions and 35 deletions

View File

@@ -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:

View File

@@ -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

View File

@@ -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()

View File

@@ -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