Mirror the Docker image to GitHub

This commit is contained in:
Lexi Sother 2021-04-26 12:06:23 +00:00
parent a44798edb1
commit 2c674cef95
No known key found for this signature in database
GPG key ID: 355968D14144B739

View file

@ -59,3 +59,13 @@ jobs:
docker buildx build \ docker buildx build \
--tag keanucode/travbot-v3:latest \ --tag keanucode/travbot-v3:latest \
--platform linux/amd64,linux/arm/v7,linux/arm64 --push . --platform linux/amd64,linux/arm/v7,linux/arm64 --push .
- name: Sync From Docker Hub to GitHub
uses: onichandame/docker-registry-sync-action@master
with:
source_repository: docker.io/keanucode/travbot-v3:latest
source_username: ${{ secrets.DOCKER_USERNAME }}
source_password: ${{ secrets.DOCKER_PASSWORD }}
target_repository: docker.pkg.github.com/keanuplayz/travbot-v3/travbot-v3:latest
target_username: ${{ secrets.GH_USERNAME }}
target_password: ${{ secrets.GH_TOKEN }}