-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: deploy and enable turbo remote cache (#2315)
- Add deployment pipeline and manifest for [turborepo-remote-cache](https://ducktors.github.io/turborepo-remote-cache/) - Configure all CI pipelines to make use of the remote cache - Add `varArgs` input to GitHub `cf-push` custom action, which allows passing custom vars to be used in the manifest
- Loading branch information
Showing
11 changed files
with
68 additions
and
3 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
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
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
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,27 @@ | ||
name: Deploy Turbo Remote Cache | ||
on: | ||
push: | ||
branches: | ||
- "main" | ||
paths: | ||
- "apps/turbo-remote-cache/**" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
deploy: | ||
name: Deploy to CloudFoundry | ||
runs-on: ubuntu-latest | ||
environment: prod | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Deploy to Cloud Foundry | ||
uses: ./.github/templates/cf-push | ||
with: | ||
endpoint: ${{ vars.CF_ENDPOINT }} | ||
org: ${{ vars.CF_ORG }} | ||
username: ${{ vars.CF_USERNAME }} | ||
password: ${{ secrets.CF_PASSWORD }} | ||
space: prod | ||
varArgs: "--var TURBO_TOKEN=${{ secrets.TURBO_REMOTE_CACHE__TURBO_TOKEN }} --var AWS_ACCESS_KEY_ID=${{ secrets.TURBO_REMOTE_CACHE__AWS_ACCESS_KEY_ID }} --var AWS_SECRET_ACCESS_KEY=${{ secrets.TURBO_REMOTE_CACHE__AWS_SECRET_ACCESS_KEY }}" | ||
working-directory: apps/turbo-remote-cache/.cloud-foundry |
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
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
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
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
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
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,14 @@ | ||
applications: | ||
- name: turbo-remote-cache | ||
instances: 2 | ||
memory: 256MB | ||
disk_quota: 1GB | ||
docker: | ||
image: ducktors/turborepo-remote-cache | ||
env: | ||
TURBO_TOKEN: ((TURBO_TOKEN)) | ||
STORAGE_PROVIDER: s3 | ||
STORAGE_PATH: turbo-remote-cache | ||
AWS_ACCESS_KEY_ID: ((AWS_ACCESS_KEY_ID)) | ||
AWS_SECRET_ACCESS_KEY: ((AWS_SECRET_ACCESS_KEY)) | ||
S3_ENDPOINT: https://object.storage.eu01.onstackit.cloud |
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