Skip to content

Commit

Permalink
New workflow was added to rollback devnet to old version (#612)
Browse files Browse the repository at this point in the history
new workflow was added to rollback devnetcustom version
  • Loading branch information
fenriz07 authored Jun 24, 2024
1 parent 04336dd commit a664996
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/rollback.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Rollback Devnet
on:
workflow_dispatch:
inputs:
version:
description: "the version of blockchain to rollback"
type: string
required: true

jobs:
deploy:
runs-on: ubuntu-latest
environment: devnet
steps:
- name: Rollback Devnet
uses: appleboy/[email protected]
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.SSH_USERNAME }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
passphrase: ${{ secrets.SSH_PASSPHRASE }}
script: /bin/bash /home/ubuntu/ci-cd-devnet-backup-and-rollback/rollback.sh ${{inputs.version}}

0 comments on commit a664996

Please sign in to comment.