Skip to content

Commit

Permalink
Add registry migration workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
francoisferrand committed Apr 17, 2024
0 parents commit d7a351a
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/migrate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
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 3 \
--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/${{ github.repository_owner }}/
- 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 3 \
--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/${{ github.repository }}
- name: Sync zenko/s3utils
run: |
docker run --rm quay.io/skopeo/stable:v1.15.0 sync \
--src docker --dest docker --all --preserve-digests --retry-times 3 \
--dest-creds ${{ github.repository_owner }}:${{ github.token }} \
zenko/${{ github.event.repository.name }} \
ghcr.io/${{ github.repository_owner }}/
docker run --rm quay.io/skopeo/stable:v1.15.0 copy \
--src docker --dest docker --all --preserve-digests --retry-times 3 \
--dest-creds ${{ github.repository_owner }}:${{ github.token }} \
zenko/${{ github.event.repository.name }}:1.0.0 \
ghcr.io/${{ github.repository }}:1.0.0

0 comments on commit d7a351a

Please sign in to comment.