My self-hosted docker based runner already activated at GitHub organization level. Separately to perform npm
build through our private docker image, Trying with below workflow yml
code.
name: CI with Docker
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: docker-runner # This is our Self-hosted docker runner
container:
image: ubuntu:npm-1 # This is our private docker image.
steps:
- uses: actions/checkout@v2
- name: Build
run: npm install
It fails with Error: docker: command not found
this is expected since my docker-runner
image doesn't loaded with docker engine package.
With Self-hosted docker runner, How do i call a private docker image and perform the build? Some pointers to achieve would be helpful. Thanks!