Skip to content

Do not fail in registry-move #45

Do not fail in registry-move

Do not fail in registry-move #45

Workflow file for this run

name: Move some images from Docker Hub to Quay.io
env:
OWNER: ${{ github.repository_owner }}
PUSH_TO_REGISTRY: ${{ (github.repository_owner == 'jupyter' || github.repository_owner == 'mathbunnyru') && (github.ref == 'refs/heads/main') }}
on:
pull_request:
paths:
- ".github/workflows/registry-move.yml"
push:
branches:
- main
paths:
- ".github/workflows/registry-move.yml"
workflow_dispatch:
permissions:
contents: read
jobs:
registry-move:
# To be able to use the latest skopeo
runs-on: macos-latest
timeout-minutes: 5
if: github.repository_owner == 'jupyter' || github.repository_owner == 'mathbunnyru'
steps:
- name: Checkout Repo ⚡️
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: Install skopeo and Docker 📦
run: |
brew install skopeo
brew install --cask docker
- name: Login to Quay.io 🔐
if: env.PUSH_TO_REGISTRY == 'true'
run: |
skopeo login quay.io \
--username ${{ secrets.QUAY_USERNAME }} \
--password ${{ secrets.QUAY_ROBOT_TOKEN }}
- name: Move image from Docker Hub to Quay.io 🐳
if: env.PUSH_TO_REGISTRY == 'true' && matrix.tag != 'tag-for-testing'
run: |
skopeo copy \
--multi-arch all \
docker://${{ env.OWNER }}/${{ matrix.image }}:${{ matrix.tag }} \
docker://quay.io/${{ env.OWNER }}/${{ matrix.image }}:${{ matrix.tag }}
strategy:
fail-fast: false
matrix:
image:
[
docker-stacks-foundation,
base-notebook,
minimal-notebook,
scipy-notebook,
r-notebook,
julia-notebook,
tensorflow-notebook,
pytorch-notebook,
datascience-notebook,
pyspark-notebook,
all-spark-notebook,
]
tag: [tag-for-testing]