docker: migrate image registry to registry.code.naskya.net

This commit is contained in:
naskya 2024-01-04 12:23:05 +09:00
parent 89d058ddc8
commit 21aa6b097b
Signed by: naskya
GPG key ID: 712D413B3A9FED5C
3 changed files with 18 additions and 3 deletions

View file

@ -2,7 +2,7 @@ version: "3"
services:
web:
image: docker.io/naskya/firefish
image: registry.code.naskya.net/naskya/firefish
container_name: firefish_web
restart: unless-stopped
depends_on:

View file

@ -0,0 +1,15 @@
---------------------------------------------------
| For Docker users: |
| The Docker image will be migrated from docker.io |
| to registry.code.naskya.net, so please edit your |
| docker-compose.yml to use the following tag: |
| |
| registry.code.naskya.net/naskya/firefish:latest |
| |
| The image will be pushed to both registries until |
| 2024-01-31, after which docker.io/naskya/firefish |
| will be removed. |
| |
| For the detailed explanation, see: |
| https://post.naskya.net/notes/9o27gac4dj8p483c |
---------------------------------------------------

View file

@ -5,7 +5,7 @@ set -eu
pull() {
say 'Pulling the image...'
run 'docker pull docker.io/naskya/firefish'
run 'docker pull registry.code.naskya.net/naskya/firefish'
}
if ! pull; then
@ -14,7 +14,7 @@ if ! pull; then
say 'It takes some time! Why not brew a cup of cofe?'
run "$(cat - << EOC
docker build --tag docker.io/naskya/firefish --build-arg VERSION="$(version)" .
docker build --tag registry.code.naskya.net/naskya/firefish --build-arg VERSION="$(version)" .
EOC
)"
fi