Set more sensible retention periods
parent
0dcd1dfc1d
commit
fe73a495f3
|
|
@ -2,7 +2,6 @@ name: Acquire activation file
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
push:
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
activation:
|
activation:
|
||||||
|
|
@ -11,10 +10,11 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
# Request manual activation file
|
# Request manual activation file
|
||||||
- name: Unity - Request Activation File
|
- name: Unity - Request Activation File
|
||||||
id: getManualLicenseFile
|
id: requestActivationFile
|
||||||
uses: game-ci/unity-request-activation-file@v2.0-alpha-1
|
uses: game-ci/unity-request-activation-file@v2.0-alpha-1
|
||||||
- name: Upload activation file
|
- name: Upload activation file
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: ${{ steps.getManualLicenseFile.outputs.filePath }}
|
name: ${{ steps.requestActivationFile.outputs.filePath }}
|
||||||
path: ${{ steps.getManualLicenseFile.outputs.filePath }}
|
path: ${{ steps.requestActivationFile.outputs.filePath }}
|
||||||
|
retention-days: 3
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
name: Delete old artifacts
|
name: Delete old artifacts
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '30 10 * * *' # every day at 10:30
|
- cron: '30 10 * * SUN' # every sunday at 10:30
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
delete-artifacts:
|
delete-artifacts:
|
||||||
|
|
|
||||||
|
|
@ -77,10 +77,11 @@ jobs:
|
||||||
unityVersion: ${{ matrix.unityVersion }}
|
unityVersion: ${{ matrix.unityVersion }}
|
||||||
targetPlatform: ${{ matrix.targetPlatform }}
|
targetPlatform: ${{ matrix.targetPlatform }}
|
||||||
customParameters: -profile SomeProfile -someBoolean -someValue exampleValue
|
customParameters: -profile SomeProfile -someBoolean -someValue exampleValue
|
||||||
- uses: actions/upload-artifact@v1
|
- uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: Build (${{ matrix.unityVersion }})
|
name: Build (${{ matrix.unityVersion }})
|
||||||
path: build
|
path: build
|
||||||
|
retention-days: 14
|
||||||
k8sBuilds:
|
k8sBuilds:
|
||||||
name: K8s build for ${{ matrix.targetPlatform }} on version ${{ matrix.unityVersion }}
|
name: K8s build for ${{ matrix.targetPlatform }} on version ${{ matrix.unityVersion }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
@ -120,9 +121,10 @@ jobs:
|
||||||
kubeConfig: ${{ steps.read-base64.outputs.base64 }}
|
kubeConfig: ${{ steps.read-base64.outputs.base64 }}
|
||||||
volume: ${{ steps.k8s-unity-build.outputs.volume }}
|
volume: ${{ steps.k8s-unity-build.outputs.volume }}
|
||||||
sourcePath: repo/build/
|
sourcePath: repo/build/
|
||||||
- uses: actions/upload-artifact@v1
|
- uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: Kubernetes Build (${{ matrix.targetPlatform }})
|
name: Kubernetes Build (${{ matrix.targetPlatform }})
|
||||||
path: k8s-volume-download
|
path: k8s-volume-download
|
||||||
|
retention-days: 14
|
||||||
- run: ./action/bootstrapper/ReleaseLockAndAttemptShutdown.sh ${{ env.GKE_PROJECT }} ${{ env.GKE_CLUSTER }} ${{ env.GKE_ZONE }}
|
- run: ./action/bootstrapper/ReleaseLockAndAttemptShutdown.sh ${{ env.GKE_PROJECT }} ${{ env.GKE_CLUSTER }} ${{ env.GKE_ZONE }}
|
||||||
if: ${{ always() }}
|
if: ${{ always() }}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue