Compare commits

..

No commits in common. "488b5d61fdde424867eeddcb997f76a427721a71" and "858557410011239c434a6533ce699084d2b31142" have entirely different histories.

5 changed files with 26 additions and 33 deletions

View File

@ -7,7 +7,6 @@ env:
CLOUDFLARE_R2_ENDPOINT: "${{ secrets.CLOUDFLARE_ACCOUNT_ID }}.r2.cloudflarestorage.com" CLOUDFLARE_R2_ENDPOINT: "${{ secrets.CLOUDFLARE_ACCOUNT_ID }}.r2.cloudflarestorage.com"
AWS_ACCESS_KEY_ID: ${{ secrets.CLOUDFLARE_R2_ACCESS_KEY }} AWS_ACCESS_KEY_ID: ${{ secrets.CLOUDFLARE_R2_ACCESS_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.CLOUDFLARE_R2_SECRET_KEY }} AWS_SECRET_ACCESS_KEY: ${{ secrets.CLOUDFLARE_R2_SECRET_KEY }}
AWS_DEFAULT_REGION: auto
AWS_ENDPOINT_URL_S3: "https://${{ secrets.CLOUDFLARE_ACCOUNT_ID }}.r2.cloudflarestorage.com" AWS_ENDPOINT_URL_S3: "https://${{ secrets.CLOUDFLARE_ACCOUNT_ID }}.r2.cloudflarestorage.com"
TF_VAR_vultr_api_key: ${{ secrets.VULTR_API_KEY }} TF_VAR_vultr_api_key: ${{ secrets.VULTR_API_KEY }}
@ -107,17 +106,13 @@ jobs:
if: inputs.action == 'create' if: inputs.action == 'create'
id: host id: host
working-directory: ${{ env.TERRAFORM_DIRECTORY }} working-directory: ${{ env.TERRAFORM_DIRECTORY }}
run: terraform output -raw host_ip run: terraform output host_ip
- name: Wait on SSH - name: Wait on SSH
if: inputs.action == 'create' uses: iFaxity/wait-on-action@v1.1.0
run: | with:
for i in $(seq 1 15); do resource: tcp ${{ steps.host.outputs.stdout }}:22
if $(nc -z -w 3 ${{ steps.host.outputs.stdout }} 22); then interval: 5000
exit 0
fi
sleep 10
done
- name: Write Identity Keys to Files - name: Write Identity Keys to Files
if: inputs.action == 'create' if: inputs.action == 'create'
@ -127,6 +122,4 @@ jobs:
- name: Copy Identity File to Host - name: Copy Identity File to Host
if: inputs.action == 'create' if: inputs.action == 'create'
run: | run: scp -i deploy_ed25519 arrow_ed25519 noah@${{ steps.host.outputs.stdout }}:~/.ssh/id_ed25519
ssh noah@${{ steps.host.outputs.stdout }} 'mkdir -pv .ssh'
scp -i deploy_ed25519 arrow_ed25519 noah@${{ steps.host.outputs.stdout }}:~/.ssh/id_ed25519

View File

@ -1,6 +1,6 @@
{ config, pkgs, lib, ... }: { { config, pkgs, ... }: {
config = lib.mkIf config.physical { config = {
services.xserver = { services.xserver = {

View File

@ -60,7 +60,7 @@ in {
dns = { dns = {
provider = { provider = {
name = "cloudflare"; name = "cloudflare";
api_token = "{env.CLOUDFLARE_API_TOKEN}"; api_token = "{env.CF_API_TOKEN}";
}; };
resolvers = [ "1.1.1.1" ]; resolvers = [ "1.1.1.1" ];
}; };

View File

@ -6,12 +6,12 @@
wantedBy = [ "multi-user.target" ]; wantedBy = [ "multi-user.target" ];
serviceConfig = { Type = "oneshot"; }; serviceConfig = { Type = "oneshot"; };
script = '' script = ''
for i in $(seq 1 10); do while true; do
if [ -f ${config.identityFile} ]; then if [ -f ${config.identityFile} ]; then
echo "Identity file found." echo "Identity file found."
exit 0 exit 0
fi fi
sleep 6 sleep 5
done done
''; '';
}; };

View File

@ -1,17 +1,17 @@
-----BEGIN AGE ENCRYPTED FILE----- -----BEGIN AGE ENCRYPTED FILE-----
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IHNzaC1lZDI1NTE5IE1nSGFPdyBkckt3 YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IHNzaC1lZDI1NTE5IE1nSGFPdyBlNHNi
c1NtVEo1bm1XREk2ZE9PL1FkOFd0LzQ1R0J4TXN4VGd2clVrZ25NCjZKenFTdHFK VzUvTDdmdndvOUpyMUlvdG5vSGNmdG9yWklPQlFFNVY5RzdabTMwCnh4YXdmY1d4
MWVZSXI0NXdVTkhJQXRFRFBRRnIxRHZaOHY1UWV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