Skip to content

Commit

Permalink
Initial Proof of Concept for self-hosted runner ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik Bylund authored and kirre-bylund committed Nov 28, 2023
1 parent 353278f commit 3087e38
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/k8s-runner.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: POC k8s runner
run-name: poc-k8s-runner
on:
pull_request:
branches: # Made towards the following
- main
- dev*
- ci/dev
types: # Only on the following activity
- opened
- synchronize # Changes to the branch like new commits, ammends, etc.
- reopened
- unlocked
push:
branches: # Made towards the following
- main
- dev
- ci/dev
tags:
- v**
workflow_dispatch: {}

jobs:
test:
name: POC-k8s-ping
runs-on: [k8s]
container:
image: ubuntu:22.04

steps:
- name: Setup git
run: |
apt update
apt-get install -y git
git config --global --add safe.directory /__w/unity-sdk/unity-sdk
- name: Setup curl
run: |
apt update
apt-get install -y curl
- name: Checkout this repository
uses: actions/checkout@v3

- name: Cat package.json
run: cat package.json

- name: Check branch
run: git branch

- name: Ping stage
run: |
curl -X POST "${{ SECRETS.LL_STAGE_URL }}/game/v2/session/guest" -H "Content-Type: application/json" -d "{\"game_key\": \"dev_dc52acb52a8b49be81761e709f1df9fd\", \"game_version\": \"0.10.0.0\", \"player_identifier\": \"k8s-runner-guest\"}"

0 comments on commit 3087e38

Please sign in to comment.