docker: migrate image registry to registry.code.naskya.net
This commit is contained in:
parent
89d058ddc8
commit
21aa6b097b
3 changed files with 18 additions and 3 deletions
|
@ -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:
|
||||
|
|
15
neko/messages/20240104_docker_registry_migration
Normal file
15
neko/messages/20240104_docker_registry_migration
Normal 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 |
|
||||
---------------------------------------------------
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue