dapr-mirror-images #14
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: dapr-mirror-images | |
on: | |
schedule: | |
- cron: '0 0 1 * *' # trigger on the 1st of every month at midnight | |
workflow_dispatch: | |
jobs: | |
mirror: | |
runs-on: ubuntu-latest | |
steps: | |
- | |
name: Checkout | |
uses: actions/checkout@v3 | |
- # ghcr logins for pushing image after testing | |
name: Login to GitHub Container Registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- | |
name: Login to DockerHub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKER_REGISTRY_ID }} | |
password: ${{ secrets.DOCKER_REGISTRY_PASS }} | |
- # copy 3rd party zookeeper image from dockerhub to ghcr | |
name: Push Image (zookeeper) to target registries | |
uses: akhilerm/[email protected] | |
with: | |
src: wurstmeister/zookeeper:latest | |
dst: | | |
ghcr.io/${{ github.repository_owner }}/3rdparty/zookeeper:latest | |
- # copy 3rd party kafka image from dockerhub to ghcr | |
name: Push Image (kafka) to target registries | |
uses: akhilerm/[email protected] | |
with: | |
src: wurstmeister/kafka:latest | |
dst: | | |
ghcr.io/${{ github.repository_owner }}/3rdparty/kafka:latest | |
- # copy 3rd party redis image from dockerhub to ghcr | |
name: Push Image (redis) to target registries | |
uses: akhilerm/[email protected] | |
with: | |
src: redis:latest | |
dst: | | |
ghcr.io/${{ github.repository_owner }}/3rdparty/redis:latest | |
- # copy 3rd party redis v6 image from dockerhub to ghcr | |
name: Push Image (redis) to target registries | |
uses: akhilerm/[email protected] | |
with: | |
src: redis:6 | |
dst: | | |
ghcr.io/${{ github.repository_owner }}/3rdparty/redis:6 | |
- # copy 3rd party rejson image from dockerhub to ghcr | |
name: Push Image (rejson) to target registries | |
uses: akhilerm/[email protected] | |
with: | |
src: redislabs/rejson:latest | |
dst: | | |
ghcr.io/${{ github.repository_owner }}/3rdparty/rejson:latest | |
- # copy 3rd party zipkin image from dockerhub to ghcr | |
name: Push Image (zipkin) to target registries | |
uses: akhilerm/[email protected] | |
with: | |
src: openzipkin/zipkin:latest | |
dst: | | |
ghcr.io/${{ github.repository_owner }}/3rdparty/zipkin:latest | |
- # copy 3rd party cassandra image from dockerhub to ghcr | |
name: Push Image (cassandra) to target registries | |
uses: akhilerm/[email protected] | |
with: | |
src: cassandra:3.11.3 | |
dst: | | |
ghcr.io/${{ github.repository_owner }}/3rdparty/cassandra:3.11.3 |