Skip to content

chore: add script and action to sync repositories #4

chore: add script and action to sync repositories

chore: add script and action to sync repositories #4

name: Sync Repositories
on:
push:
branches:
- drosiek-sync-container-repositories
jobs:
sync-repositories:
strategy:
matrix:
include:
- docker_username: DOCKERHUB_LOGIN_BUSYBOX
docker_password: DOCKERHUB_PASSWORD_BUSYBOX
aws_access_key: AWS_ACCESS_KEY_ID_BUSYBOX
aws_secret_access_key: AWS_SECRET_ACCESS_KEY_BUSYBOX
src_repository: docker.io/busybox
dest_docker_namespace: docker.io/sumologic
dest_ecr_namespace: public.ecr.aws/a4t4y2n3
uses: ./.github/workflows/workflow-sync-repositories.yaml
with:
src_repository: ${{ matrix.src_repository }}
dest_docker_namespace: ${{ matrix.dest_docker_namespace }}
dest_ecr_namespace: ${{ matrix.dest_ecr_namespace }}
secrets:
DOCKER_USERNAME: ${{ secrets[matrix.docker_username] }}
DOCKER_PASSWORD: ${{ secrets[matrix.docker_password] }}
AWS_ACCESS_KEY_ID: ${{ secrets[matrix.aws_access_key] }}
AWS_SECRET_ACCESS_KEY: ${{ secrets[matrix.aws_secret_access_key] }}