mirror of
https://github.com/tloncorp/landscape.git
synced 2024-12-25 01:31:30 +03:00
ops: new pipeline
This commit is contained in:
parent
b570ef083d
commit
74236997d5
7
.github/helpers/deploy.sh
vendored
7
.github/helpers/deploy.sh
vendored
@ -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" \
|
||||
|
2
.github/workflows/deploy-canary.yml
vendored
2
.github/workflows/deploy-canary.yml
vendored
@ -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 }}
|
||||
|
2
.github/workflows/deploy-external.yml
vendored
2
.github/workflows/deploy-external.yml
vendored
@ -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 }}
|
||||
|
2
.github/workflows/deploy-internal.yml
vendored
2
.github/workflows/deploy-internal.yml
vendored
@ -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 }}
|
||||
|
2
.github/workflows/deploy-live.yml
vendored
2
.github/workflows/deploy-live.yml
vendored
@ -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 }}
|
||||
|
2
.github/workflows/deploy.yml
vendored
2
.github/workflows/deploy.yml
vendored
@ -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 }}
|
||||
|
Loading…
Reference in New Issue
Block a user