Skip to content

Commit

Permalink
Add ghcr migration workflow
Browse files Browse the repository at this point in the history
Issue: UTAPI-99
  • Loading branch information
francoisferrand committed Apr 23, 2024
0 parents commit e363852
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/migrate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
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 }}
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/

0 comments on commit e363852

Please sign in to comment.