From 0ae9ab1827cfe168863b558ea547110a5750eaab Mon Sep 17 00:00:00 2001 From: Francois Ferrand Date: Mon, 22 Apr 2024 11:31:53 +0200 Subject: [PATCH] Add migration to ghcr workflow Issue: ZENKO-4800 --- .github/workflows/migrate.yaml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/migrate.yaml diff --git a/.github/workflows/migrate.yaml b/.github/workflows/migrate.yaml new file mode 100644 index 0000000000..0fd16eb710 --- /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/zenko/kafka \ + ghcr.io/scality/zenko + + - 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/zenko/kafka-connect \ + ghcr.io/scality/zenko