Skip to content

Instantly share code, notes, and snippets.

@tuladhar
Last active March 12, 2024 17:09
Show Gist options
  • Save tuladhar/b34d42da132258526771a83219b0c604 to your computer and use it in GitHub Desktop.
Save tuladhar/b34d42da132258526771a83219b0c604 to your computer and use it in GitHub Desktop.
# This is a basic workflow to help you get started with Actions
name: Hello World
# Controls when the action will run.
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: self-hosted
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
# Runs a single command using the runners shell
- name: Run a one-line script
run: echo Hello, world!
# Runs docker hello-world
- name: Hello from Docker
run: docker run hello-world
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment