Skip to content

Add Dockerfile for self-hosted runner bolierplate #46

Add Dockerfile for self-hosted runner bolierplate

Add Dockerfile for self-hosted runner bolierplate #46

Workflow file for this run

name: "CI Full Run"
on:
pull_request:
branches:
- main
- grok/*/*
push:
branches:
- main
jobs:
ci-storage-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Create dummy file
run: echo "dummy" > dummy.txt
- name: Test store
uses: ./
with:
action: "store"
storage-host: ""
- name: Remove dummy file
run: rm dummy.txt
- name: Test load
uses: ./
with:
action: "load"
storage-host: ""
- name: Check that dummy file was restored
run: |
set -e
ls -la ~/ci-storage/dimikot/ci-storage
[ "$(cat dummy.txt)" = "dummy" ] || { echo "dummy.txt was not restored"; exit 1; }
self-hosted-runner-boot-docker:
runs-on: ubuntu-latest
timeout-minutes: 3
permissions:
actions: write
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build Docker image
run: |
set -e
cd docker
docker-compose build
- name: Start Docker container
run: |
set -e
cd docker
docker-compose up
env:
GH_REPOSITORY: ${{ github.repository }}
GH_LABELS: ci-storage-test
GH_TOKEN: ${{ secrets.CI_PAT }}
# self-hosted-runner-spawn-job:
# runs-on: ["self-hosted", "ci-storage-test"]
# steps:
# - run: echo "Hello, world!"