Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
kirre-bylund committed Oct 31, 2024
1 parent e5a60f8 commit 1ce4b83
Showing 1 changed file with 35 additions and 12 deletions.
47 changes: 35 additions & 12 deletions .github/workflows/selfhosted-poc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ on:
workflow_dispatch: {}

jobs:
ping-stage-test:
name: Ping stage backend
if: false
build-sdk:
name: Build SDK with Unreal container and UAT
runs-on: ubuntu-22.04-4-core
steps:
- name: Setup Tailscale
Expand All @@ -18,14 +17,10 @@ jobs:
oauth-client-id: ${{ SECRETS.CI_TS_OAUTH_CLIENT_ID }}
oauth-secret: ${{ SECRETS.CI_TS_OAUTH_SECRET }}
tags: tag:ci

- name: Setup git
run: |
git config --global --add safe.directory /__w/unreal-sdk/unreal-sdk
##- name: Setup curl
## run: |
## sudo apt-get update
## apt-get install -y curl
- name: Checkout this repository
uses: actions/checkout@v4
Expand All @@ -35,12 +30,40 @@ jobs:

- 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\"}"

- name: Docker Authorize
run: |
docker login ghcr.io -u ${{ SECRETS.UNREAL_DOCKER_PACKAGES_READ_USERNAME }} -p ${{ SECRETS.UNREAL_DOCKER_PACKAGES_READ_ACCESS_TOKEN }}
docker pull ghcr.io/epicgames/unreal-engine:dev-5.4
- name: Run UAT
run: |
echo πŸ’£πŸ’£πŸ’£πŸ’£πŸ’£πŸ’£πŸ’£πŸ’£
exit 999
ping-stage-test:
name: Ping stage backend
runs-on: ubuntu-latest
steps:
- name: Setup Tailscale
uses: tailscale/github-action@v2
with:
oauth-client-id: ${{ SECRETS.CI_TS_OAUTH_CLIENT_ID }}
oauth-secret: ${{ SECRETS.CI_TS_OAUTH_SECRET }}
tags: tag:ci
- name: Setup git
run: |
git config --global --add safe.directory /__w/unreal-sdk/unreal-sdk
- name: Checkout this repository
uses: actions/checkout@v4

- 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\"}"

0 comments on commit 1ce4b83

Please sign in to comment.