diff --git a/.github/workflows/migrate.yaml b/.github/workflows/migrate.yaml new file mode 100644 index 0000000000..9334074284 --- /dev/null +++ b/.github/workflows/migrate.yaml @@ -0,0 +1,31 @@ +--- +name: migrate + +on: + push: + branches-ignore: + - development/** + - q/*/** + +jobs: + build: + runs-on: ubuntu-latest + steps: + + - name: Sync ${{ github.event.repository.name }}/kafka + 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 }}/kafka \ + ghcr.io/scality/${{ github.event.repository.name }} + + - name: Sync ${{ github.event.repository.name }}/kafka-conect + 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 }}/kafka-connect \ + ghcr.io/scality/${{ github.event.repository.name }}