Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juanonsoftware/b501d347a63342cbaffe2aa982e20b58 to your computer and use it in GitHub Desktop.
Save juanonsoftware/b501d347a63342cbaffe2aa982e20b58 to your computer and use it in GitHub Desktop.
Configure Self-hosted Runners & Deploy from Docker Hub
Trigger a build from Github Actions, then deploy an application running in Docker on our "Laptop".
Add a self-hosted runners and execute scripts to deploy docker containers
1. Go to repo settings to add new hosted runner
2. Config the runner (Windows)
3. Create a new workflow yml file & job to use the configured runner
4. The flow will be triggered on workflow_run event, like in this sample https://github.com/juanonsoftware/PocGithubActionsDotNet/blob/main/.github/workflows/cd-develop-docker.yml
5. The flow only run when another workflow completed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment