Skip to content

Instantly share code, notes, and snippets.

@ety001
Created March 21, 2023 17:29
Show Gist options
  • Save ety001/0f788bbe7ad53bbd4dbff9ff58434893 to your computer and use it in GitHub Desktop.
Save ety001/0f788bbe7ad53bbd4dbff9ff58434893 to your computer and use it in GitHub Desktop.
move the docker images from docker hub to github.
#!/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