ops: new pipeline

This commit is contained in:
Hunter Miller 2023-05-12 09:55:54 -05:00
parent b570ef083d
commit 74236997d5
6 changed files with 9 additions and 8 deletions

View File

@ -7,7 +7,8 @@ repo=$1
desk=$2
ship=$3
zone=$4
ref=${5:-master}
project=$5
ref=${6:-master}
folder=$ship/$desk
set -e
@ -20,7 +21,7 @@ git clone --depth 1 --branch '$ref' git@github.com:'$repo'.git $source_repo
urbit_repo=$(mktemp --dry-run /tmp/repo.urbit.XXXXXXXXX)
git clone --depth 1 git@github.com:urbit/urbit.git $urbit_repo -b '$URBIT_REPO_TAG' --single-branch
cd $source_repo
cd /home/urb || return
cd /home/urbit || return
curl -s --data '\''{"source":{"dojo":"+hood/mount %'$desk'"},"sink":{"app":"hood"}}'\'' http://localhost:12321
rsync -avL --delete $urbit_repo/pkg/base-dev/ '$folder'
rsync -avL $source_repo/desk/ '$folder'
@ -37,7 +38,7 @@ chmod 600 $sshpub
chmod 600 $sshpriv
gcloud compute \
--project mainnet \
--project "$project" \
ssh \
--tunnel-through-iap \
--ssh-key-file "$sshpriv" \

View File

@ -21,7 +21,7 @@ jobs:
- id: deploy
name: Deploy
run:
./.github/helpers/deploy.sh tloncorp/landscape garden binnec-dozzod-marzod us-west1-b ${{ github.event.inputs.tag }}
./.github/helpers/deploy.sh tloncorp/landscape garden binnec-dozzod-marnus us-central1-a mainnet-tlon-other-2d ${{ github.event.inputs.tag }}
env:
SSH_SEC_KEY: ${{ secrets.JANEWAY_SSH_SEC_KEY }}
SSH_PUB_KEY: ${{ secrets.JANEWAY_SSH_PUB_KEY }}

View File

@ -21,7 +21,7 @@ jobs:
- id: deploy
name: Deploy
run:
./.github/helpers/deploy.sh tloncorp/landscape garden doznec-dozzod-marzod us-west1-b ${{ github.event.inputs.tag }}
./.github/helpers/deploy.sh tloncorp/landscape garden doznec-dozzod-marnus us-central1-a mainnet-tlon-other-2d ${{ github.event.inputs.tag }}
env:
SSH_SEC_KEY: ${{ secrets.JANEWAY_SSH_SEC_KEY }}
SSH_PUB_KEY: ${{ secrets.JANEWAY_SSH_PUB_KEY }}

View File

@ -21,7 +21,7 @@ jobs:
- id: deploy
name: Deploy
run:
./.github/helpers/deploy.sh tloncorp/landscape garden marnec-dozzod-marzod us-west1-b ${{ github.event.inputs.tag }}
./.github/helpers/deploy.sh tloncorp/landscape garden marnec-dozzod-marnus us-central1-a mainnet-tlon-other-2d ${{ github.event.inputs.tag }}
env:
SSH_SEC_KEY: ${{ secrets.JANEWAY_SSH_SEC_KEY }}
SSH_PUB_KEY: ${{ secrets.JANEWAY_SSH_PUB_KEY }}

View File

@ -21,7 +21,7 @@ jobs:
- id: deploy
name: Deploy
run:
./.github/helpers/deploy.sh tloncorp/landscape garden mister-dister-dozzod-dozzod us-central1-a ${{ github.event.inputs.tag }}
./.github/helpers/deploy.sh tloncorp/landscape garden mister-dister-dozzod-dozzod us-central1-a mainnet ${{ github.event.inputs.tag }}
env:
SSH_SEC_KEY: ${{ secrets.JANEWAY_SSH_SEC_KEY }}
SSH_PUB_KEY: ${{ secrets.JANEWAY_SSH_PUB_KEY }}

View File

@ -82,7 +82,7 @@ jobs:
- id: deploy
name: Deploy
run:
./.github/helpers/deploy.sh tloncorp/landscape garden wannec-dozzod-marzod us-west1-b ${{ github.event.inputs.tag }}
./.github/helpers/deploy.sh tloncorp/landscape garden wannec-dozzod-marnus us-central1-a mainnet-tlon-other-2d ${{ github.event.inputs.tag }}
env:
SSH_SEC_KEY: ${{ secrets.JANEWAY_SSH_SEC_KEY }}
SSH_PUB_KEY: ${{ secrets.JANEWAY_SSH_PUB_KEY }}