diff options
author | Joffrey Bion <joffrey.bion@gmail.com> | 2021-02-07 02:17:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-07 02:17:56 +0100 |
commit | c0796356518f14f2449d188c8385e9fcb5cf20b2 (patch) | |
tree | fb28e3ee4bdabcadfb3bcf8a1517252eeedeaee0 | |
parent | Temporarily change host name (DNS refresh) (diff) | |
download | seven-wonders-c0796356518f14f2449d188c8385e9fcb5cf20b2.tar.gz seven-wonders-c0796356518f14f2449d188c8385e9fcb5cf20b2.tar.bz2 seven-wonders-c0796356518f14f2449d188c8385e9fcb5cf20b2.zip |
Create deploy-digitalocean.yml
-rw-r--r-- | .github/workflows/deploy-digitalocean.yml | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/.github/workflows/deploy-digitalocean.yml b/.github/workflows/deploy-digitalocean.yml new file mode 100644 index 00000000..8b036aad --- /dev/null +++ b/.github/workflows/deploy-digitalocean.yml @@ -0,0 +1,30 @@ +name: deploy-digitalocean + +on: + workflow_dispatch: +# push: +# branches: [ main ] +# paths: kubernetes/* + +jobs: + deploy: + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + 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 bro-cluster + + - name: Deploy to DigitalOcean Kubernetes + run: kubectl apply -f kubernetes/server.yml + + - name: Verify deployment + run: kubectl rollout status deployment/seven-wonders |