Skip to content

Add self-hosted runner environment verification workflow#195

Draft
Copilot wants to merge 2 commits intodevelopfrom
copilot/add-minimal-github-actions-workflow
Draft

Add self-hosted runner environment verification workflow#195
Copilot wants to merge 2 commits intodevelopfrom
copilot/add-minimal-github-actions-workflow

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 25, 2026

Adds a minimal workflow to verify self-hosted Linux runner environment and Docker availability before expanding CI/CD infrastructure.

Changes

  • .github/workflows/verify-runner.yml: New workflow triggered on manual dispatch and push to develop
    • Prints runner metadata (name, OS, disk space, user)
    • Validates Docker installation and configuration
    • Tests Docker build/run with Alpine 3.18 minimal image

Usage

Manual trigger via Actions UI or automatic execution on develop branch pushes. Workflow validates:

  • Runner accessible and properly configured
  • Docker daemon functional
  • Image build/run capabilities operational
Original prompt

Add a minimal GitHub Actions workflow .github/workflows/verify-runner.yml that runs on the on-prem linux self-hosted runner and verifies environment setup for subsequent CI/CD work.

Requirements:

  • Workflow name: Minimal Runner Environment Check
  • Trigger: workflow_dispatch and push to develop
  • jobs:
    • check-runner:
      runs-on: [self-hosted, linux]
      steps:
      - name: Print runner info
      run: |
      echo "Runner: ${{ runner.name }}"
      uname -a
      lsb_release -a || cat /etc/os-release
      df -hT
      whoami
      - name: Check Docker install
      run: |
      docker --version
      docker info
      - name: Test Docker build
      run: |
      echo -e "FROM alpine:3.18\nCMD ['echo', 'hello from alpine!']" > Dockerfile
      docker build -t test-alpine .
      docker run --rm test-alpine echo "hello from inside Docker"
      docker rmi test-alpine

Acceptance:

  • Action prints runner metadata
  • Docker is found and functional
  • Docker build and run of a minimal image succeed

This pull request was created from Copilot chat.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: alexdryden <47127862+alexdryden@users.noreply.github.com>
Copilot AI changed the title [WIP] Add minimal GitHub Actions workflow for runner environment check Add self-hosted runner environment verification workflow Feb 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants