Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: automatic deployments of standalone nodes #4069

Merged
merged 1 commit into from
Mar 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/workflows/deploy-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,43 @@ jobs:

- name: bounce grpcui
run: kubectl rollout restart deployment grpcui-preview

# Deploys a standalone instance of pd,
# specifically to exercise the auto-https direct-serve logic.
standalone:
name: deploy standalone pd node, preview
permissions:
contents: 'read'
id-token: 'write'
needs:
- deploy
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4

- name: configure ssh identity
run: |-
mkdir -p ~/.ssh
chmod 700 ~/.ssh
echo "$SSH_PRIVKEY" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
echo "$SSH_HOSTKEYS" > ~/.ssh/known_hosts
env:
# In order to generate the hostkey material:
#
# echo > hostkeys.txt
# ssh-keyscan -H solo-pd.testnet-preview.plinfra.net | tee -a hostkeys.txt
# ssh-keyscan -H solo-pd.testnet.plinfra.net | tee -a hostkeys.txt
#
# Then paste the contents of that file into `secrets.CI_RUNNER_SSH_HOSTKEYS`,
# so it's consumable via this step.
SSH_PRIVKEY: ${{ secrets.CI_RUNNER_SSH_PRIVKEY }}
SSH_HOSTKEYS: ${{ secrets.CI_RUNNER_SSH_HOSTKEYS }}

- name: deploy
shell: bash
run: |-
export PENUMBRA_VERSION="main"
export PENUMBRA_ENVIRONMENT="penumbra-preview"
./deployments/scripts/redeploy-ci-fullnode-via-runner
50 changes: 0 additions & 50 deletions .github/workflows/deploy-standalone.yml

This file was deleted.

32 changes: 32 additions & 0 deletions .github/workflows/deploy-testnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,35 @@ jobs:
# Wait for rollout to complete. Will block until pods are marked Ready.
kubectl rollout status deployment \
-l "app.kubernetes.io/instance=galileo"

# Deploys a standalone instance of pd,
# specifically to exercise the auto-https direct-serve logic.
standalone:
name: deploy standalone pd node, preview
permissions:
contents: 'read'
id-token: 'write'
needs:
- deploy
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4

- name: configure ssh identity
run: |-
mkdir -p ~/.ssh
chmod 700 ~/.ssh
echo "$SSH_PRIVKEY" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
echo "$SSH_HOSTKEYS" > ~/.ssh/known_hosts
env:
SSH_PRIVKEY: ${{ secrets.CI_RUNNER_SSH_PRIVKEY }}
SSH_HOSTKEYS: ${{ secrets.CI_RUNNER_SSH_HOSTKEYS }}

- name: deploy
shell: bash
run: |-
export PENUMBRA_VERSION='${{ github.event.inputs.image_tag || github.ref_name }}'
export PENUMBRA_ENVIRONMENT="penumbra-testnet"
./deployments/scripts/redeploy-ci-fullnode-via-runner
Loading