|
|
@@ -1,6 +1,6 @@
|
|
|
# devops
|
|
|
|
|
|
-Apps and scripts built as part of the DevOps pipeline for the monoaf.com
|
|
|
+Apps and scripts built as part of the DevOps pipeline for the monoexp.com
|
|
|
server.
|
|
|
|
|
|
The main piece is the **deploy pipeline**: when a pull request is merged into
|
|
|
@@ -66,7 +66,7 @@ Repos not listed are refused.
|
|
|
Steps 1–4 match Phase 7 of the server plan. **Steps 1–3 are one script:**
|
|
|
|
|
|
```bash
|
|
|
-git clone https://git.monoaf.com/bajdev/devops.git ~/devops && cd ~/devops
|
|
|
+git clone https://git.monoexp.com/bajdev/devops.git ~/devops && cd ~/devops
|
|
|
./install.sh --dry-run # optional: print every command, change nothing
|
|
|
./install.sh
|
|
|
```
|
|
|
@@ -84,7 +84,7 @@ sudo useradd -r -m -d /var/lib/deploy -s /bin/bash -G webops deploy
|
|
|
sudo install -m 664 -o deploy -g webops /dev/null /var/log/deploys.log
|
|
|
sudo -iu deploy sh -c 'mkdir -p -m 700 ~/.ssh && ssh-keygen -t ed25519 -N "" -f ~/.ssh/id_ed25519 -C deploy@vps'
|
|
|
sudo -iu deploy git config --global user.name Deploy
|
|
|
-sudo -iu deploy git config --global user.email deploy@monoaf.com
|
|
|
+sudo -iu deploy git config --global user.email deploy@monoexp.com
|
|
|
sudo cat /var/lib/deploy/.ssh/id_ed25519.pub # for the Gogs deploy account
|
|
|
```
|
|
|
|
|
|
@@ -93,13 +93,13 @@ collaborator on each repo it releases. It needs Write to push tags; branch
|
|
|
protection still stops it pushing to `main`. Then trust Gogs' host key:
|
|
|
|
|
|
```bash
|
|
|
-sudo -iu deploy ssh -o StrictHostKeyChecking=accept-new git@git.monoaf.com true
|
|
|
+sudo -iu deploy ssh -o StrictHostKeyChecking=accept-new git@git.monoexp.com true
|
|
|
```
|
|
|
|
|
|
**2. Build and install** from a checkout of this repo:
|
|
|
|
|
|
```bash
|
|
|
-git clone https://git.monoaf.com/bajdev/devops.git ~/devops && cd ~/devops
|
|
|
+git clone https://git.monoexp.com/bajdev/devops.git ~/devops && cd ~/devops
|
|
|
(cd deployd && go test ./... && CGO_ENABLED=0 go build -trimpath -o deployd .)
|
|
|
sudo install -o root -g root -m 755 deployd/deployd /usr/local/bin/deployd
|
|
|
sudo install -o root -g root -m 755 release/release /usr/local/bin/release
|