Jose Diaz-Gonzalez
cca507da6a
refactor: avoid pushd/popd to enable commands to pass from root-enabled directories
2021-01-17 19:40:33 -05:00
Jose Diaz-Gonzalez
d58fe853d6
fix: allow updating head
2021-01-17 19:34:07 -05:00
Jose Diaz-Gonzalez
03dc90b4fd
chore: re-add output redirection
2021-01-17 19:33:36 -05:00
Jose Diaz-Gonzalez
2a4918c7ce
fix: run check-ref-format in the correct directory
2021-01-17 19:23:40 -05:00
Jose Diaz-Gonzalez
7bb130edb7
refactor: use flag instead of environment variable
2021-01-17 19:13:30 -05:00
Jose Diaz-Gonzalez
3af1342a9b
fix: expand git-ref to the full commit sha
...
If using a branch, git commands that interact with worktrees may fail for newer versions of git.
2021-01-17 17:29:21 -05:00
Jose Diaz-Gonzalez
d16ff7fa12
fix: properly report last-updated
2021-01-17 17:19:14 -05:00
Jose Diaz-Gonzalez
d5dbd456ea
chore: quiet down git init
...
The command is louder when running on newer versions of git, and the output isn't useful to end users.
2021-01-17 17:07:10 -05:00
Jose Diaz-Gonzalez
3f25514e1a
refactor: combine both clone and sync commands
...
Using a single command will allow users to not have to worry about the workflow they use to setup or update a given app.
2021-01-17 17:00:33 -05:00
Jose Diaz-Gonzalez
97b33a9138
feat: fix: use correct branch for ref updating
2021-01-17 17:00:33 -05:00
Jose Diaz-Gonzalez
f73c927512
fix: do not allow fetch on fresh apps
2021-01-17 17:00:33 -05:00
Jose Diaz-Gonzalez
827dbbc740
fix: delete the deploy branch if its a ref and not tag
2021-01-17 17:00:33 -05:00
Jose Diaz-Gonzalez
dbd48356f5
refactor: properly handle commits and branches
...
- if it is a commit, we must clone and checkout. `clone --branch` only works for tags and branches
- set the branch as the deploy-branch if detected
2021-01-17 17:00:33 -05:00
Jose Diaz-Gonzalez
6dc55624bd
chore: change message
2021-01-17 17:00:33 -05:00
Jose Diaz-Gonzalez
5e645e1489
fix: use correct method to detect if a repo is empty
2021-01-17 17:00:33 -05:00
Jose Diaz-Gonzalez
87a786fec5
fix: get arguments correctly
2021-01-17 17:00:33 -05:00
Jose Diaz-Gonzalez
c9fc203596
fix: properly parse arguments
2021-01-17 17:00:33 -05:00
Jose Diaz-Gonzalez
f87525d8cf
refactor: move temp directory to git data directory
2021-01-17 17:00:33 -05:00
Jose Diaz-Gonzalez
31332a5061
fix: move fn-git-create-hook to internal-functions
...
Its unused elsewhere.
2021-01-17 17:00:33 -05:00
Jose Diaz-Gonzalez
c80fcf7b8e
feat: add support for cloning/syncing from a remote repository
...
This makes it a bit easier for external projects to implement deploy webhooks by exposing the ability to sync from a git repository/sha.
2021-01-17 17:00:33 -05:00
Kazuhiro NISHIYAMA
98c81513aa
Accept first pushed branch as deploy-branch
...
And set to DOKKU_DEPLOY_BRANCH.
Idea from https://github.com/dokku/dokku/pull/4167#issuecomment-717607136
2020-12-08 23:15:11 +09:00
Jose Diaz-Gonzalez
6901e9658f
feat: expose last-updated-at in git:report
2020-04-18 18:21:54 -04:00
Jose Diaz-Gonzalez
a8a6d0595b
refactor: deprecate git_deploy_branch in favor of plugn trigger
2020-04-18 18:21:46 -04:00
Jose Diaz-Gonzalez
48dc5d8cc1
refactor: move git-sha flag to git:report
2020-03-10 14:13:48 -04:00
Jose Diaz-Gonzalez
e67b96780d
refactor: unify command declaration across codebase
2020-02-10 01:40:30 -05:00
Jose Diaz-Gonzalez
ef7894fdfa
refactor: standardize help generation
2020-02-10 00:37:00 -05:00
Jose Diaz-Gonzalez
14838de344
feat: allow keeping the git directory during builds
...
It may be desirable to keep the contents of the git directory for the build process. Certain build tools can extract extra information from the .git directory, and some workflows may require that the shipped artifact has the entire source code available locally for later usage.
2019-09-15 19:15:35 -04:00
Jose Diaz-Gonzalez
86795ddacc
tests: run mvdan/shfmt on test runs
...
While I do not agree with _every_ style change, this will force Dokku to have consistent formatting across all shell scripts, which is arguably a Good Thing™.
The command used to reprocess everything is:
```shell
shfmt -l -bn -ci -i 2 -w .
```
2019-01-07 01:25:55 -05:00
Jose Diaz-Gonzalez
4aac1fd936
feat: add report trigger
...
This allows users to quickly show the state of any configured application, as well as the state of their server. In doing so, we make it easy for them to provide information necessary for debugging in a single command.
2018-04-07 04:49:21 -04:00
Jose Diaz-Gonzalez
83f320ac8e
feat: add ability to initialize a git repository out of band
...
This is useful in contexts where the repository directory may be created and interacted with via git-http-backend or other methods of updating a repository.
2018-04-02 00:11:32 -04:00
Jose Diaz-Gonzalez
d67e883e13
feat: flesh out git plugin further
...
- add `report` and `set` subcommands to the git plugin
- move configuring the DOKKU_DEPLOY_BRANCH to the git plugin
- implement configurable GIT_REV support
- migrate DOKKU_DEPLOY_BRANCH settings
- add a golang-compatible, shell based method of setting plugin configuration variables
Deprecates the community dokku-git-rev plugin.
Closes #2621
Refs dokku-community/dokku-git-rev#9
2018-03-31 03:25:03 -04:00