Skip to content
This repository was archived by the owner on Nov 21, 2025. It is now read-only.

Commit acdb561

Browse files
committed
Fix SSH key locations for new server layout
As of a week or so ago the MPR server has been put on the main homelab instance, and that has brought about some layout changes for where things like the SSH keys are stored.
1 parent 69fd183 commit acdb561

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

.drone/drone.jsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ local publishImage() = {
2424
type: "exec",
2525
trigger: {branch: ["main"]},
2626
depends_on: ["run-tests"],
27-
node: {server: "mprweb"},
27+
node: {server: "homelab"},
2828
steps: [{
2929
name: "publish-image",
3030
environment: {

.drone/scripts/publish-image.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ aurweb_config set notifications smtp-password "${mpr_smtp_password}"
3636
aurweb_config set notifications sender "MPR <mpr@${makedeb_url}>"
3737
aurweb_config set notifications reply-to "mpr@${makedeb_url}"
3838

39-
ed25519_key="$(ssh-keygen -lf /etc/ssh/ssh_host_ed25519_key.pub | awk '{print $2}')"
40-
ecdsa_key="$(ssh-keygen -lf /etc/ssh/ssh_host_ecdsa_key.pub | awk '{print $2}')"
41-
rsa_key="$(ssh-keygen -lf /etc/ssh/ssh_host_rsa_key.pub | awk '{print $2}')"
39+
ed25519_key="$(ssh-keygen -lf /var/www/mpr.makedeb.org/keys/ssh_host_ed25519_key.pub | awk '{print $2}')"
40+
ecdsa_key="$(ssh-keygen -lf /var/www/mpr.makedeb.org/keys/ssh_host_ecdsa_key.pub | awk '{print $2}')"
41+
rsa_key="$(ssh-keygen -lf /var/www/mpr.makedeb.org/keys/ssh_host_rsa_key.pub | awk '{print $2}')"
4242

4343
aurweb_config set fingerprints Ed25519 "${ed25519_key}"
4444
aurweb_config set fingerprints ECDSA "${ecdsa_key}"
@@ -60,6 +60,7 @@ docker-compose -f ./docker-compose.yml \
6060
find ./ -maxdepth 1 \
6161
-not -path './' \
6262
-not -path './data' \
63+
-not -path './keys' \
6364
-not -path './service.sh' \
6465
-exec rm -rf '{}' +
6566

docker-compose.mpr-override.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ services:
1111
volumes:
1212
- ./data/git_data:/aurweb/aur.git
1313
- ./data:/aurweb/data
14-
- /etc/ssh/ssh_host_ecdsa_key:/etc/ssh/ssh_host_ecdsa_key:ro
15-
- /etc/ssh/ssh_host_ed25519_key:/etc/ssh/ssh_host_ed25519_key:ro
16-
- /etc/ssh/ssh_host_rsa_key:/etc/ssh/ssh_host_rsa_key:ro
14+
- ./keys/ssh_host_ecdsa_key:/etc/ssh/ssh_host_ecdsa_key:ro
15+
- ./keys/ssh_host_ed25519_key:/etc/ssh/ssh_host_ed25519_key:ro
16+
- ./keys/ssh_host_rsa_key:/etc/ssh/ssh_host_rsa_key:ro
1717

1818
smartgit:
1919
volumes:

0 commit comments

Comments
 (0)