Skip to content

Commit

Permalink
chore(ci): try to cache docker images in GitHub cache to reduce Docke…
Browse files Browse the repository at this point in the history
…r pull rate limit issues (#5117)
  • Loading branch information
FGoessler authored Jan 13, 2025
1 parent 814e8ba commit deeda72
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/test-driver-adapters-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Cache Docker images.
uses: ScribeMD/[email protected]
with:
key: docker-${{ inputs.setup_task }}-${{hashFiles('docker-compose.yaml')}}

- name: Extract Branch Name
id: extract-branch
run: |
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/test-query-engine-black-box.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Cache Docker images.
uses: ScribeMD/[email protected]
with:
key: docker-${{ matrix.database.name }}-${{hashFiles('docker-compose.yaml')}}

- name: "Start ${{ matrix.database.name }} (${{ matrix.engine_protocol }})"
run: make start-${{ matrix.database.name }}

Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/test-query-engine-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Cache Docker images.
uses: ScribeMD/[email protected]
with:
key: docker-${{ inputs.name }}-${{hashFiles('docker-compose.yaml')}}

- name: "Start ${{ inputs.name }} (${{ matrix.engine_protocol }})"
run: make start-${{ inputs.name }}

Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/test-schema-engine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Cache Docker images.
uses: ScribeMD/[email protected]
with:
key: docker-${{ matrix.database.name }}-${{hashFiles('docker-compose.yaml')}}

- name: "Start ${{ matrix.database.name }}"
run: make start-${{ matrix.database.name }}-single

Expand Down Expand Up @@ -124,6 +129,11 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Cache Docker images.
uses: ScribeMD/[email protected]
with:
key: docker-${{ matrix.database.name }}-${{hashFiles('docker-compose.yaml')}}

- name: "Start ${{ matrix.database.name }}"
run: make start-${{ matrix.database.name }}

Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/wasm-benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Cache Docker images.
uses: ScribeMD/[email protected]
with:
key: docker-pg-bench-${{hashFiles('docker-compose.yaml')}}

- name: Extract Branch Name
run: |
echo "Extracting branch name from: $(git show -s --format=%s)"
Expand Down

0 comments on commit deeda72

Please sign in to comment.