self hosted runner pipeline
parent
cf6f489116
commit
f211dc47b7
|
|
@ -15,33 +15,21 @@ on:
|
||||||
# Triggers the workflow on push or pull request events but only for the develop branch
|
# Triggers the workflow on push or pull request events but only for the develop branch
|
||||||
push: { branches: [main, cloud-runner-develop] }
|
push: { branches: [main, cloud-runner-develop] }
|
||||||
|
|
||||||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
|
||||||
jobs:
|
jobs:
|
||||||
# This workflow contains a single job called "build"
|
|
||||||
boot-self-hosted-runner:
|
boot-self-hosted-runner:
|
||||||
# The type of runner that the job will run on
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
# Steps represent a sequence of tasks that will be executed as part of the job
|
|
||||||
steps:
|
steps:
|
||||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
lfs: 'false'
|
|
||||||
fetch-depth: 0
|
|
||||||
###########################
|
|
||||||
# Ephemeral Runner #
|
|
||||||
###########################
|
|
||||||
- name: Configure AWS Credentials
|
- name: Configure AWS Credentials
|
||||||
uses: aws-actions/configure-aws-credentials@v1
|
uses: aws-actions/configure-aws-credentials@v1
|
||||||
with:
|
with:
|
||||||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||||
|
aws-region: eu-west-2
|
||||||
- name: Unity - Builder
|
- name: Unity - Builder
|
||||||
# You may pin to the exact commit or the version.
|
|
||||||
# uses: game-ci/unity-builder@3d0eb0805bbe2df90e319abbe42e41d0b9105625
|
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
|
branch: ${{ github.ref }}
|
||||||
|
GITHUB_SHA: ${{ github.sha }}
|
||||||
cloudRunnerCluster: aws
|
cloudRunnerCluster: aws
|
||||||
allowDirtyBuild: true
|
allowDirtyBuild: true
|
||||||
cloudRunnerMemory: 4096
|
cloudRunnerMemory: 4096
|
||||||
|
|
@ -68,6 +56,12 @@ jobs:
|
||||||
runs-on: self-hosted
|
runs-on: self-hosted
|
||||||
needs: boot-self-hosted-runner
|
needs: boot-self-hosted-runner
|
||||||
steps:
|
steps:
|
||||||
|
- name: Configure AWS Credentials
|
||||||
|
uses: aws-actions/configure-aws-credentials@v1
|
||||||
|
with:
|
||||||
|
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||||
|
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||||
|
aws-region: eu-west-2
|
||||||
- name: Unity - Builder
|
- name: Unity - Builder
|
||||||
id: aws-fargate-unity-build
|
id: aws-fargate-unity-build
|
||||||
# You may pin to the exact commit or the version.
|
# You may pin to the exact commit or the version.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue