Skip to content

Commit

Permalink
use github caching to cache plugin assets
Browse files Browse the repository at this point in the history
  • Loading branch information
davegarvey committed Aug 12, 2024
1 parent 84d3b42 commit 637d156
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/tyk-demo-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,19 @@ jobs:
- name: Check Out Repository Code
uses: actions/checkout@v4
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner."
- name: Extract Tyk Gateway Docker image tag

Check failure on line 16 in .github/workflows/tyk-demo-tests.yml

View workflow job for this annotation

GitHub Actions / Yamllint

16:51 [trailing-spaces] trailing spaces
id: get-tag
run: |
TAG=$(grep -oP "tykio/tyk-gateway:\K[^\s]+" deployments/tyk/docker-compose.yml | sed 's/\${GATEWAY_VERSION:-\(.*\)}/\1/')
echo "tag=$TAG" >> $GITHUB_OUTPUT
- name: Cache plugin directory
uses: actions/cache@v3
with:
path: .bootstrap/plugin-cache/${{ steps.get-tag.outputs.tag }}
key: ${{ runner.os }}-plugin-cache-${{ steps.get-tag.outputs.tag }}-${{ hashFiles('.bootstrap/plugin-cache/**/*') }}
restore-keys: |
${{ runner.os }}-plugin-cache-${{ steps.get-tag.outputs.tag }}-
${{ runner.os }}-plugin-cache-
- name: Create Environment File
run: |
echo "DASHBOARD_LICENCE=${{ secrets.DASH_LICENSE }}" >> .env
Expand Down

0 comments on commit 637d156

Please sign in to comment.