Add ghcr migration workflow #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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/scality/ | |
- name: Sync warp10 | |
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 }}/warp10 \ | |
ghcr.io/scality/${{ github.event.repository.name }} | |
- name: Sync sf-eng/${{ 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/sf-eng/${{ github.event.repository.name }} \ | |
ghcr.io/scality/ | |