action-doctl | GitHub Actions for DigitalOcean - doctl | Continous Integration library
kandi X-RAY | action-doctl Summary
kandi X-RAY | action-doctl Summary
This action enables you to interact with DigitalOcean services by installing the doctl command-line client.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of action-doctl
action-doctl Key Features
action-doctl Examples and Code Snippets
Community Discussions
Trending Discussions on action-doctl
QUESTION
I want to have a workflow dispatch triggered GitHub Action that will
- ssh into a specific digitalocean droplet
- deploy the code by running
git pull
- then recreate the .env file based on the secrets inside the GITHUB repository
I thought 1 and 3 are the hardest part so I concentrated on them.
Two hard requirements are:
A) i want to avoid is writing any secrets and committing them to the repository direct.
B) must work for private GitHub org/repo or user/repo
This is my current workflow file
...ANSWER
Answered 2021-Nov-12 at 15:43There are a couple of approaches I can think of:
- As you mentioned, replacing the
create-envfile
Action invocation with your own script to dump environment variables to a.env
file and adding that as an argument to yourappleboy/ssh-action
invocation step. I don't see this as a major burden - you could just copy most of the code from here. - Keeping the
SpicyPizza/create-envfile
action step but modifying the output path to a location inside the GitHub Actions runner. Then,scp
the env file you just created to your droplet. You can do this with your own subsequentrun
step or you could use this scp GitHub Action. File changes by separate steps remain in the runner workspace until the end of the job, and subsequent steps see previous steps' changes on the runner's filesystem.
QUESTION
I have a Dockerfile for one of my Node.js services that I try to push to my Digitalocean registry through the use of Github actions.
My Node.js service requires a private package that is hosted by myself on npm.js registry.
In my Dockerfile, I have an ARG for that:
...ANSWER
Answered 2021-Apr-12 at 00:41Actually, I figured it out. Have to add build-args
to the Build and Push part, and remove the env
from there.
So instead of:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install action-doctl
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page