-
Notifications
You must be signed in to change notification settings - Fork 241
49 lines (43 loc) · 2.23 KB
/
migrate.yaml
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
---
name: migrate
on:
push:
branches-ignore:
- development/**
- q/*/**
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Sync ${{ github.event.repository.name }}
run: |
docker run --rm quay.io/skopeo/stable:v1.15.0 sync \
--src docker --dest docker --all --preserve-digests --retry-times 5 \
--src-creds ${{ secrets.REGISTRY_LOGIN }}:${{ secrets.REGISTRY_PASSWORD }} \
--dest-creds ${{ github.repository_owner }}:${{ github.token }} \
registry.scality.com/${{ github.event.repository.name }}/${{ github.event.repository.name }} \
ghcr.io/scality/
- name: Sync ${{ github.event.repository.name }}-dashboards
run: |
docker run --rm quay.io/skopeo/stable:v1.15.0 sync \
--src docker --dest docker --all --preserve-digests --retry-times 5 \
--src-creds ${{ secrets.REGISTRY_LOGIN }}:${{ secrets.REGISTRY_PASSWORD }} \
--dest-creds ${{ github.repository_owner }}:${{ github.token }} \
registry.scality.com/${{ github.event.repository.name }}/${{ github.event.repository.name }}-dashboards \
ghcr.io/scality/${{ github.event.repository.name }}
- name: Sync ${{ github.event.repository.name }}-policices
run: |
docker run --rm quay.io/skopeo/stable:v1.15.0 sync \
--src docker --dest docker --all --preserve-digests --retry-times 5 \
--src-creds ${{ secrets.REGISTRY_LOGIN }}:${{ secrets.REGISTRY_PASSWORD }} \
--dest-creds ${{ github.repository_owner }}:${{ github.token }} \
registry.scality.com/${{ github.event.repository.name }}/${{ github.event.repository.name }}-policies \
ghcr.io/scality/${{ github.event.repository.name }}
- name: Sync pykmip
run: |
docker run --rm quay.io/skopeo/stable:v1.15.0 sync \
--src docker --dest docker --all --preserve-digests --retry-times 5 \
--src-creds ${{ secrets.REGISTRY_LOGIN }}:${{ secrets.REGISTRY_PASSWORD }} \
--dest-creds ${{ github.repository_owner }}:${{ github.token }} \
registry.scality.com/${{ github.event.repository.name }}/pykmip \
ghcr.io/scality/${{ github.event.repository.name }}