diff options
author | joffrey-bion <joffrey.bion@gmail.com> | 2021-02-09 17:42:14 +0100 |
---|---|---|
committer | joffrey-bion <joffrey.bion@gmail.com> | 2021-02-09 17:42:14 +0100 |
commit | 612801067d4bf39ef9e23c82fd185e68ae3b27de (patch) | |
tree | 0d733ddf8525d216c0bbaf71d5bf57fd1570228a /.github | |
parent | Improve error message in GameBrowserController (diff) | |
download | seven-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')
-rw-r--r-- | .github/workflows/rollback-digitalocean.yml | 25 |
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 |