repo_server | A standalone remotely controllable apt repository | Continuous Deployment library
kandi X-RAY | repo_server Summary
kandi X-RAY | repo_server Summary
A standalone remotely controllable apt repository server. The purpose of repo server was to provide an apt repository server where packages can be added and removed from a signed repository remotely using a command line client. In addition the ability to create and delete additional temporary repositories was also required.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of repo_server
repo_server Key Features
repo_server Examples and Code Snippets
Community Discussions
Trending Discussions on repo_server
QUESTION
I search the method to copy files to "test" host when I launch the "git push" command.
...ANSWER
Answered 2021-May-19 at 15:11It sounds like you are trying to (re) invent CI/CD.
If you are using GitHub or GitLab as a remote server you can use Pipelines
(or Actions
in GitHub).
In there you can define (almost) anything you want to happen after a push, I am assuming your Host_TEST
is accessible online.
In case you are running your own git server
You can implement "push to deploy" using the post-receive
hook. Hooks are scripts that are placed inside .git/hooks
and executed at a precise phase of a git command. you can find several example implementations in .git/hook
. See here for more information: Setting up Push-to-Deploy with git
In case you don't have access to your own git server
You can use the pre-push
script on your local machine, BUT THIS IS A BAD IDEA
This hooks is executed after you execute git push
but before git
actually pushes anything. If your script fails (i.e non-zero return code) it will not push.
Also, if your script manages to copy but then git
fails to push you will end up testing code that's not in your repo.
If all this sound way too complicated
You can create a bash function that does both operations and add it to your .bashrc
.
Here is an example:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install repo_server
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page