-
Notifications
You must be signed in to change notification settings - Fork 3k
60 lines (52 loc) · 1.74 KB
/
registry-move.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
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:
jobs:
update-overview:
# To be able to use latest skopeo
runs-on: macos-latest
if: github.repository_owner == 'jupyter' || github.repository_owner == 'mathbunnyru'
steps:
- name: Checkout Repo ⚡️
uses: actions/checkout@v4
- name: Install skopeo 📦
run: brew install skopeo
- name: Login to Quay.io 🔐
if: env.PUSH_TO_REGISTRY == 'true'
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0
with:
registry: 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'
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,
datascience-notebook,
pyspark-notebook,
all-spark-notebook,
]
tag: [4d70cf8da953]