Skip to content

Docker Builds with TurboRepo #246

Closed Answered by rharkor
rcronin asked this question in Q&A
Discussion options

You must be logged in to vote

This is how to use the cache within docker

This is the part in the github action:

      - name: Cache for Turbo
        uses: rharkor/caching-for-turbo@v1.8
        with:
          provider: s3
          max-age: 1mo
          max-size: 10gb
          s3-access-key-id: ${{ secrets.S3_ACCESS_KEY_ID }}
          s3-secret-access-key: ${{ secrets.S3_SECRET_ACCESS_KEY }}
          s3-bucket: ${{ secrets.NEXT_PUBLIC_S3_BUCKET_NAME }}
          s3-region: ${{ secrets.S3_REGION }}
          s3-endpoint: ${{ secrets.S3_ENDPOINT }}

      - name: Build docker image
        timeout-minutes: 10
        run: |
          docker build --build-arg TURBO_TEAM=$TURBO_TEAM --build-arg TURBO_TOKEN=$TURBO_TO…

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by rharkor
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants