Skip to content
This repository was archived by the owner on Feb 24, 2026. It is now read-only.

Use CANASTA_IMAGE environment variable for web service image#73

Merged
yaronkoren merged 1 commit intomainfrom
devmode
Jan 26, 2026
Merged

Use CANASTA_IMAGE environment variable for web service image#73
yaronkoren merged 1 commit intomainfrom
devmode

Conversation

@cicalese
Copy link
Contributor

@cicalese cicalese commented Jan 26, 2026

Change the web service image from a hardcoded registry reference to use an environment variable with a default fallback:

image: ${CANASTA_IMAGE:-ghcr.io/canastawiki/canasta:latest}

This allows the Canasta CLI to override the image when building from local source with the --build-from flag. The CLI sets CANASTA_IMAGE in the .env file to point to the locally built image (e.g., canasta:local).

When CANASTA_IMAGE is not set, the default behavior remains unchanged, pulling from the GitHub Container Registry.

Related PRs:

Change the web service image from a hardcoded registry reference to use
an environment variable with a default fallback:

  image: ${CANASTA_IMAGE:-ghcr.io/canastawiki/canasta:latest}

This allows the Canasta CLI to override the image when building from
local source with the --build-from flag. The CLI sets CANASTA_IMAGE
in the .env file to point to the locally built image (e.g., canasta:local).

When CANASTA_IMAGE is not set, the default behavior remains unchanged,
pulling from the GitHub Container Registry.
@yaronkoren yaronkoren merged commit c26ca45 into main Jan 26, 2026
@cicalese cicalese deleted the devmode branch January 26, 2026 20:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants