summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorjoffrey-bion <joffrey.bion@gmail.com>2021-02-09 17:42:14 +0100
committerjoffrey-bion <joffrey.bion@gmail.com>2021-02-09 17:42:14 +0100
commit612801067d4bf39ef9e23c82fd185e68ae3b27de (patch)
tree0d733ddf8525d216c0bbaf71d5bf57fd1570228a /.github/workflows
parentImprove error message in GameBrowserController (diff)
downloadseven-wonders-612801067d4bf39ef9e23c82fd185e68ae3b27de.tar.gz
seven-wonders-612801067d4bf39ef9e23c82fd185e68ae3b27de.tar.bz2
seven-wonders-612801067d4bf39ef9e23c82fd185e68ae3b27de.zip
Add rollback workflow
Resolves: https://github.com/joffrey-bion/seven-wonders/issues/91
Diffstat (limited to '.github/workflows')
-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