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

Add post-entrypoint to unlock the app on cancellation #7

Merged
merged 5 commits into from
Dec 19, 2022
Merged

Conversation

obrassard
Copy link
Owner

No description provided.

@obrassard obrassard self-assigned this Jul 2, 2020
@obrassard obrassard marked this pull request as draft July 2, 2020 18:34
@obrassard obrassard linked an issue Jul 2, 2020 that may be closed by this pull request
@obrassard obrassard marked this pull request as ready for review July 2, 2020 21:41
echo "Unlocking Dokku deployment";

app=$(echo $DOKKU_REPO | sed -e 's/.*\///')
ssh -p ${ssh_port:=22} dokku@$ssh_host apps:unlock $app
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

apps:unlock requires dokku >= 0.11.6, you should maybe write that somewhere in the readme?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, this assumes that the dokku user on remote in actually called dokku.
I don't know if it could ever be changed.

Probably not, since the official dokku_client.sh assumes that the user is dokku as well: https://github.com/dokku/dokku/blob/master/contrib/dokku_client.sh#L149.
So it's probably fine.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

apps:unlock requires dokku >= 0.11.6, you should maybe write that somewhere in the readme?

Good idea !

echo "Unlocking Dokku deployment";

app=$(echo $DOKKU_REPO | sed -e 's/.*\///')
ssh -p ${ssh_port:=22} dokku@$ssh_host apps:unlock $app
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, this assumes that the dokku user on remote in actually called dokku.
I don't know if it could ever be changed.

Probably not, since the official dokku_client.sh assumes that the user is dokku as well: https://github.com/dokku/dokku/blob/master/contrib/dokku_client.sh#L149.
So it's probably fine.

@obrassard obrassard merged commit 1391fe4 into master Dec 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Suggestion : Cancel Previous Runs
3 participants