Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Avoid caching FE code at docker build #378

Merged
merged 2 commits into from
Dec 16, 2024
Merged

Conversation

aponcedeleonch
Copy link
Contributor

The release URL gets cached if we curl for the latest release at the Dockerfile. To avoid docker caching we need to pass the URL as a build argument everytime we want to build. Which means executing this command and passing the result as a build argument

curl -s "https://api.github.com/repos/stacklok/codegate-ui/releases/latest" -H "Authorization: Bearer ***" | grep '"zipball_url":' | cut -d '"' -f 4

The release URL gets cached if we `curl` for the latest release at the `Dockerfile`.
To avoid docker caching we need to pass the URL as a build argument everytime we want
to build. Which means executing this command and passing the result as a build argument
```
curl -s "https://api.github.com/repos/stacklok/codegate-ui/releases/latest" -H "Authorization: Bearer ***" | grep '"zipball_url":' | cut -d '"' -f 4
```
@lukehinds lukehinds merged commit a643183 into main Dec 16, 2024
3 checks passed
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.

3 participants