-
Notifications
You must be signed in to change notification settings - Fork 9
52 lines (46 loc) · 1.36 KB
/
selfhosted-poc.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Selfhosted Runner Proof of Concept
run-name: selfhosted-poc
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:
ping-stage-test:
name: Ping stage backend
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/unreal-sdk/unreal-sdk
- name: Setup curl
run: |
apt update
apt-get install -y curl
- name: Checkout this repository
uses: actions/checkout@v3
- name: Cat uplugin file
run: cat LootLockerSDK/LootLockerSDK.uplugin
- name: Check branch
run: git branch
- name: Ping stage
run: |
curl -X POST "https://${{ 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\"}"