Skip to content

Jeckerson/do-app-deploy-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Deploy a DigitalOcean App Platform app using GitHub Actions.

  • Auto-deploy your app from source on commit, while allowing you to run tests or perform other operations before.
  • Auto-sync your in-repo .do/app.yaml on commit.

Example

https://github.com/snormore/sample-golang/tree/action

Add your .do/app.yaml:

Note that you should not configure deploy_on_push: true for this workflow.

name: sample-golang
services:
- name: web
  git:
    repo_clone_url: https://github.com/snormore/sample-golang.git
    branch: main

Create a .github/workflows/main.yml:

on:
  push:
    branches:
      - action
jobs:
  deploy:
    runs-on: ubuntu-latest
    name: Deploy App
    steps:
    - name: Checkout code
      uses: actions/checkout@v2
    - name: Deploy app
      id: deploy
      uses: snormore/doctl-app-deploy-action@main
      env:
        DIGITALOCEAN_ACCESS_TOKEN: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }}

About

Deploy a DigitalOcean App Platform app using GitHub Actions.

Resources

Stars

Watchers

Forks

Languages

  • Shell 60.3%
  • Dockerfile 39.7%