You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I was wondering if this is a bug, feature or maybe I'm just missing something. I thought that using --version option within deploy command will clone a specific tag from repository with name corresponding to --version value. Instead, this value is used only to version the docker image. In all cases always the HEAD is cloned regardless the --version value. I have investigated the source code and find no reference to repo tags just the "rev-parse HEAD" mentions, e.g. in module Kamal::Commands::Builder::Clone without ability to configure it.
I'm asking about tag clone feature because I have always used Capistrano for deployment and according to sentence "Kamal basically is Capistrano for Containers" I thought I was in right place.
Some example for reference:
> kamal redeploy -H -d staging --version 1.0.0-rc.1
...
INFO [aa4f561e] Running /usr/bin/env git -C /tmp/kamal-clones/my-app-64249e376ff9a clone /home/me/projects/my-app-project --recurse-submodules as me@localhost
INFO [aa4f561e] Finished in 0.120 seconds with exit status 0 (successful).
INFO [59139fc4] Running /usr/bin/env git -C /tmp/kamal-clones/my-app-64249e376ff9a/malina/ status --porcelain as me@localhost
INFO [59139fc4] Finished in 0.004 seconds with exit status 0 (successful).
INFO [b8ee382c] Running /usr/bin/env git -C /tmp/kamal-clones/my-app-64249e376ff9a/my-app-project/ rev-parse HEAD as me@localhost
...
I hope that I'm missing something.
The only workaround I found is to checkout the desired tag before the deployment command.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I was wondering if this is a bug, feature or maybe I'm just missing something. I thought that using --version option within deploy command will clone a specific tag from repository with name corresponding to --version value. Instead, this value is used only to version the docker image. In all cases always the HEAD is cloned regardless the --version value. I have investigated the source code and find no reference to repo tags just the "rev-parse HEAD" mentions, e.g. in
module Kamal::Commands::Builder::Clone
without ability to configure it.I'm asking about tag clone feature because I have always used Capistrano for deployment and according to sentence "Kamal basically is Capistrano for Containers" I thought I was in right place.
Some example for reference:
I hope that I'm missing something.
The only workaround I found is to checkout the desired tag before the deployment command.
Beta Was this translation helpful? Give feedback.
All reactions