Created
March 21, 2023 17:29
-
-
Save ety001/0f788bbe7ad53bbd4dbff9ff58434893 to your computer and use it in GitHub Desktop.
move the docker images from docker hub to github.
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
#!/bin/bash | |
set -xe | |
repos=( | |
"steemfans/pricefeed:latest" | |
"steemfans/authsteem:edge" | |
"steemfans/authsteem:latest" | |
"steemfans/steem-dev-tools:latest" | |
"steemfans/steem-conductor:latest" | |
"steemfans/steem-watcher:latest" | |
"steemfans/easy-follow-vote:latest" | |
"steemfans/ugly-db:latest" | |
"steemfans/steemeditor:latest" | |
) | |
for repo in "${repos[@]}" | |
do | |
docker pull $repo | |
docker tag $repo ghcr.io/$repo | |
docker push ghcr.io/$repo | |
docker rmi $repo ghcr.io/$repo | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment