2022-03-08 10:50:59 +00:00
|
|
|
name: Deploy Latest Version on DigitalOcean
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_run:
|
|
|
|
workflows:
|
|
|
|
- Build and Push Docker Image
|
|
|
|
types:
|
|
|
|
- completed
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
deploy:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Install DigitalOcean CLI
|
2022-03-24 07:02:38 +00:00
|
|
|
uses: digitalocean/action-doctl@v2.1.1
|
2022-03-08 10:50:59 +00:00
|
|
|
with:
|
|
|
|
token: ${{ secrets.DIGITALOCEAN_TOKEN }}
|
|
|
|
|
|
|
|
- name: Create Deployment with Latest Version
|
|
|
|
run: doctl apps create-deployment ${{ secrets.DIGITALOCEAN_APP_ID }} --wait --force-rebuild
|