ci: build and publish the image on every push to main
Build docker image and push to registry.bitdeals.org / build (push) Failing after 4m25s
Build docker image and push to registry.bitdeals.org / build (push) Failing after 4m25s
The registry account available on the testnet hosts is pull-only (403 on a blob upload even for an existing repository), so publishing goes the same way every other BitDeals image does: the Gitea runner builds and pushes with the CI credentials. Tags mirror the family — an immutable <version>.<sha7>, a moving <version>, and :latest for compose and Watchtower. The version is read out of the Dockerfile ARG rather than repeated here: a tag that can disagree with the code inside is worse than no tag.
This commit is contained in:
@@ -60,6 +60,11 @@ docker run -d \
|
||||
|
||||
## сборка и публикация
|
||||
|
||||
Пуш в `main` собирает и публикует образ (`.gitea/workflows/build.yaml`) с тремя
|
||||
тегами: `<версия>.<sha7>` — для развёртывания, `<версия>` — для чтения глазами,
|
||||
`latest` — для compose и Watchtower. Вручную, если под рукой есть учётные данные
|
||||
registry:
|
||||
|
||||
```sh
|
||||
docker build . --file docker/Dockerfile --tag registry.bitdeals.org/electrumx
|
||||
docker push registry.bitdeals.org/electrumx
|
||||
|
||||
Reference in New Issue
Block a user