Giter Site home page Giter Site logo

example-doctl-action's Introduction

GitHub Actions for DigitalOcean Example

This repository contains an example workflow using the GitHub Action for DigitalOcean to build, tag, and deploy a container image to a DigitalOcean Kubernetes cluster.

Workflow

The example workflow will trigger on every push to this repo's master branch. For push, the workflow will:

  • Build the image from the included Dockerfile
  • Tag and push the image to a private DigitalOcean container registry
  • Retrieve the kubeconfig file for a DigitalOcean Kubernetes cluster
  • Create a deployment using config/deployment.yml

Notes

  • This example is using a Kubernetes cluster running v1.18.x with action-doctl@v2. (For older versions, see the v1 tag.)
  • Your Kubernetes cluster must have access to your private DigitalOcean container registry (doctl kubernetes cluster registry add <cluster>).
  • This example uses external-dns installed via Helm. This is an optional requirement, but you will need to adjust your config/deployment.yml file if it is not in use.

example-doctl-action's People

Contributors

alorwu avatar andrewsomething avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

example-doctl-action's Issues

[ERROR] No matches for kind "Deployment"

Hi there,

I'm trying to follow the repository tutorial, but I received this error:

service/static-example-service created
error: unable to recognize "/home/runner/work/example-doctl-action/example-doctl-action/config/deployment.yml": no matches for kind "Deployment" in version "apps/v1beta1"
##[error]Process completed with exit code 1.

Could you guys help me?

Push to docker registry fails with `tag does not exist` registry.digitalocean.com/mailio/mailiofrontend:latest

It seems like this might be outdated? It's been working for me for the past 100 deployments up until 1 month ago.

Run docker push registry.digitalocean.com/myrepo/static-example
Using default tag: latest
The push refers to repository [registry.digitalocean.com/myrepo/static-example]
tag does not exist: registry.digitalocean.com/myrepo/static-example:latest
Error: Process completed with exit code 1.

Github workflow fix is to add the tag when pushing to registry:

 ...
  - name: Push image to DigitalOcean Container Registry
    run: docker push registry.digitalocean.com/myrepo/static-example:$(echo $GITHUB_SHA | head -c7)
...

##[error]Docker run failed with exit code 1

I get this error

##[error]Docker run failed with exit code 1

On the Save DigitalOcean kubeconfig step.. I have the DO access token set, unable to resolve, not sure what the issue is

Unable to connect to the server

Hi, thanks for your example. I have this error:

Unable to connect to the server: dial tcp 64.227.102.149:443: i/o timeout

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.