New answers tagged

0

I've actually sorted out this one by myself. After some testing, I've created an intermediate bare git repo (git init --bare) on test1. This will act kind of as a git server that will receive and push commits to test1 + prod1 repos at will. To achieve this I did the following: On test1 machine: 1. mkdir /opt/puppet.git 2. cd /opt/puppet.git 3. git init ...


0

I added this to my ebextensions. This was what I used to connecting to code commit. I needed to specify the user and ignore host key checking. Hope this helps anybody stopping by... commands: add_ssh_config: command: printf "Host git-codecommit.*.amazonaws.com\r\n StrictHostKeyChecking no\r\n User <name-of-user>\r\n IdentityFile ...


1

If I summarize your request, what you want, is to have an architecture with 1 git server which receives all the pushes from users, and automated pushes to prod when it's ready. This is exactly what is done with architectire based on gerrit review system for instance. The workflow is as follow : Git pull from prod server Do you changes locally Git push to ...


0

This approach also works with filenames that contain spaces: git ls-files -z | xargs -0 -n1 -I{} -- git log -1 --format="%ai {}" {} Example output: 2015-11-03 10:51:16 -0500 .gitignore 2016-03-30 11:50:05 -0400 .htaccess 2015-02-18 12:20:26 -0500 .travis.yml 2016-04-29 09:19:24 +0800 2016-01-13-Atlanta.md 2016-04-29 09:29:10 +0800 2016-03-03-Elmherst.md ...


1

I think you can use Jenkins GitLab plugin. This plugin adds an option to your jobs to "Build when a change is pushed to GitLab" and gives URL for Gitlab webhook. So, when you setup your webhook in Gitlab and create Jenkins job, Gitlab will be triggered after creating and pushing tag to your repository and will call Jenkins with the provided URL. Jenkins ...


0

Fixed it by executing root@server:~# a2enmod cgi Enabling module cgi. To activate the new configuration, you need to run: service apache2 restart root@server:~# service apache2 restart I feel like such a dumbass. xD Thanks for all the help.


0

Have a look here: git as a deployment tool There are lots more links available in a google search for "git as a deployment tool".


0

In the end, I went with a solution similar to the hack @CosmicOssifrage mentions. The main difference is that git remote remove origin is not enough to remove all secrets, as the password is written to various files in .git/logs/. So at the end I simply created an include file that calls sed to clean up the mess: - name: git password cleanup shell: cd {{ ...


1

Is there a way to set the password from ansible for the time of the playbook run, but not to store it on the server? The ansible git module doesn't currently have a way to specify the password be ephemeral, i.e. to ensure it is erased from the .git directory after the upstream repository has been cloned. You could "hack" this by invoking the command ...


0

I meet the same Question like yours. and i try to do below you should know the 'role' of http execute. Just like your 'apache' create your ssh key sudo -u apache ssh-keygen -t rsa and the path of the key will be show in the cmd screen. go to the path and cat id_rsa.pub, copy your key and post to the github or gitlab finally, because your server dont know ...



Top 50 recent answers are included