Merge pull request #40 from lexisother/master

Mirror the Docker image to GitHub
This commit is contained in:
Keanu Timmermans 2021-04-26 14:42:58 +02:00 committed by GitHub
commit e844c61ece
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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 }}