summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/rollback-digitalocean.yml25
1 files changed, 25 insertions, 0 deletions
diff --git a/.github/workflows/rollback-digitalocean.yml b/.github/workflows/rollback-digitalocean.yml
new file mode 100644
index 00000000..2224029d
--- /dev/null
+++ b/.github/workflows/rollback-digitalocean.yml
@@ -0,0 +1,25 @@
+name: rollback-digitalocean
+
+on:
+ workflow_dispatch: {}
+
+jobs:
+ deploy:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout repo
+ uses: actions/checkout@v2
+
+ - name: Install doctl
+ uses: digitalocean/action-doctl@v2
+ with:
+ token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }}
+
+ - name: Setup DigitalOcean kubeconfig
+ run: doctl kubernetes cluster kubeconfig save --expiry-seconds 600 bro-cluster
+
+ - name: Deploy to DigitalOcean Kubernetes
+ run: kubectl apply -f kubernetes/server.yml
+
+ - name: Verify deployment
+ run: kubectl rollout undo --namespace seven-wonders deployment/seven-wonders
bgstack15