Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Speficic commits for custom-apps #1482

Open
marcramser opened this issue Oct 4, 2024 · 1 comment
Open

Speficic commits for custom-apps #1482

marcramser opened this issue Oct 4, 2024 · 1 comment
Labels

Comments

@marcramser
Copy link

Hi

I found your documentation on custom apps (https://github.com/frappe/frappe_docker/blob/main/docs/custom-apps.md) to be very helpful.

From what I understand, specifying the "url" and "branch" during the Docker image build pulls the latest version of the specified branch. However, I was wondering if there is a way to specify a specific commit for the build, instead of always pulling the latest version.

Is there an undocumented method for this, or any other approach to prevent automatically pulling the latest changes whenever a Docker image is built?

For example, something like adding a "commit" field in the configuration:

export APPS_JSON='[
{
"url": "https://github.com/frappe/erpnext",
"branch": "version-15",
"commit": "df3267ad3cf5bf4f2ca62588f0656db57c45ea3b"
}
]'

Or is there another way to have a more "strict" versioning that just branches?

Thank you for your time and assistance!

@revant
Copy link
Collaborator

revant commented Oct 6, 2024

You can use branch or tag.

In case you need specific commit, you'll need to fork like this frappe/wiki#279 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants