Releases Using standard-version first releasestandard-version --first-releasereleasestandard-versionprereleasestandard-version --prerelease alpharelease asstandard-version --release-as 1.0.0dry runstandard-version --dry-runRelease with messagestandard-version --releaseCommitMessageFormat "this release is the best {{currentTag}}"
git Checkout out a file from a branch checkout a file into your staging area git checkout [branch] -- [file]reset to working area git reset HEAD [file]reset the file from working area to current commit git checkout -- [file]
git Merge B into A replacing A git checkout A git merge --ff-only $(git commit-tree -m "Throw away branch 'A'" -p A -p B B^{tree})
squid Squid Let's you cache debian packages. Here's my deployment. Now when auto installing linux I can point it to this as a proxy #cloud-config autoinstall: version: 1 proxy: http://git.local-domain:8000/ However this doesn't cache https traffic. Squid just forwards this straight to the
deployment Drone jsonnet extension I'm pretty sure you can't run starlark and jsonnet extensions at the same time. I guess you could write another extension to multiplex them. However the jsonnet extension appears to allow multiple files. Here's a build with a jsonnet file - which does nothing.
OpenSSH Watch out for unicode authorized_keys So I make an authorized_keys file for OpenSSH to use under windows using this powershell command: $env:SSH_PUBLIC_KEY | Out-File c:\ProgramData\ssh\administrators_authorized_keysWhy doesn't it work? Because it's unicode. You have to do: $env:SSH_PUBLIC_KEY | Out-File c:
docker docker registry authentication This talks about configuring the registry. My current configuration - the default - at /etc/docker/registry/config.yml is: version: 0.1 log: fields: service: registry storage: cache: blobdescriptor: inmemory filesystem: rootdirectory: /var/lib/registry http: addr: :5000 headers: X-Content-Type-Options: [nosniff] health: storagedriver:
guacamole guacamole has bust Ever since i split into two stacks my guacamole has stopped working. Message The character [_] is never valid in a domain name. This is because I am now accessing it on the externalnet with domain [stack name]_[container name]. I need to fix this
drone drone/drone-convert-starlark I build an image from this for a service to make yaml from starlark. This gets used by drone-server. It has a folder called repos with library code. It would be good to devise a way for drone pipelines to plug starlark code into
Ghost Ghost mysql problem I'm getting this on ghost select `sessions`.* from `sessions` where `sessions`.`session_id` = '[hidden]' limit 1 - read ECONNRESET So this guy talks about it. (google translate) Looks like I can keep pinging ghost with something - to make it keep the
deployment Splitting up the stack tldr; I have split the stack into separate stacks talking over an overlay network. Each one can have a drone. I think I need to split my application stack into a number of separate stacks. It will all still need to be proxied by
privacy Does this website need a GDPR banner? I don't think it does because cookies are only generally used for the essential functioning of the site, for example signing in to gitea, making comments etc. It has web analytics but all data collected is anonymised and none of it sent to third
Server monitoring I want to add the facility to monitor the servers in my infrastructure. I'm going to try zabbix and nagios. zabbixHere's the commit for zabbix mysql db. This is the commit for zabbix server. This is the commit for zabbix front end. Zabbix is
privacy Analytics with Matomo This post talks about using private web analytics. This adds a maria db database for matomo. This adds the matomo service and an nginx service to serve its static files. This puts it on the analytics sub path here. I'm configuring matomo to anonymise
Comments I'm going to use this post to help me add commento. This should add a postgres db server. I'll make the password private later. I don't really care about it being public as you'd have to get into the docker appnet network first. This
Nginx puzzle According to this post and also here using a variable for the upstream server like this: location /git/ { resolver 127.0.0.11 ipv6=off valid=30s; ## internal docker dns set $upstream http://gitea:3000/; proxy_pass $upstream; }allows nginx to start even when
deployment Development Stack This code defines the set of web applications which make up this website. It hosts git repositories, builds and deploys them and allows the systems they run on to be accessed and monitored. ApplicationsThese application scan be accessed with the links at the top