switch deployment to danube, using codeberg container registry
1 file changed, 6 insertions(+), 4 deletions(-)
changed files
M justfile → justfile
@@ -1,7 +1,7 @@ #!/usr/bin/env nix #!nix develop ``.#ci`` --command just --justfile -docker_registry := "registry.fly.io/alanpearce-eu" +docker_registry := "codeberg.org/alinnow/homestead" docker-tag := env("DOCKER_TAG", `date -u +%Y%m%d%H%M%S` + "-" + `git rev-parse --short HEAD`) listen_address := env("SERVER_LISTEN_ADDRESS", "::1") port := env("SERVER_PORT", "8080")@@ -34,10 +34,12 @@ ci: check-links cd *DEPLOY_FLAGS: && (deploy DEPLOY_FLAGS) - fly auth docker + # TODO make idempotent + # test -n "$CODEBERG_TOKEN" && ko login codeberg.org --username alinnow --password $CODEBERG_TOKEN container-build: - KO_DOCKER_REPO={{ docker_registry }} ko build --sbom none --bare --tags {{ docker-tag }} . + KO_DOCKER_REPO={{ docker_registry }} ko build --sbom none --bare --tags {{ docker-tag }} . deploy *DEPLOY_FLAGS: - fly deploy --image $(just container-build) {{ DEPLOY_FLAGS }} + # TODO package danube cli + danube rapids update --image $(just container-build) homestead {{ DEPLOY_FLAGS }}