-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial Proof of Concept for self-hosted runner ci
- Loading branch information
1 parent
353278f
commit 3087e38
Showing
1 changed file
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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\"}" |