Skip to content

Commit

Permalink
Cache CI images to speedup build
Browse files Browse the repository at this point in the history
Issue: BB-449
  • Loading branch information
francoisferrand committed Oct 27, 2023
1 parent 5b3d492 commit 33ffb08
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ jobs:

- name: Set up Docker Buildk
uses: docker/setup-buildx-action@v2
with:
buildkitd-flags: --debug

- name: Login to Registry
uses: docker/login-action@v2
Expand All @@ -39,8 +37,8 @@ jobs:
push: true
context: .github/dockerfiles/kafka
tags: "ghcr.io/scality/backbeat/ci-kafka:${{ github.sha }}"
cache-from: type=gha
cache-to: type=gha,mode=max
cache-from: type=gha,scope=ci-kafka
cache-to: type=gha,mode=max,scope=ci-kafka

- name: Build and push syntheticbucketd
uses: docker/build-push-action@v4
Expand All @@ -49,17 +47,17 @@ jobs:
context: .
file: .github/dockerfiles/syntheticbucketd/Dockerfile
tags: "ghcr.io/scality/backbeat/syntheticbucketd:${{ github.sha }}"
cache-from: type=gha
cache-to: type=gha,mode=max
cache-from: type=gha,scope=syntheticbucketd
cache-to: type=gha,mode=max,scope=syntheticbucketd

- name: Build and push MongoDB
uses: docker/build-push-action@v4
with:
push: true
context: .github/dockerfiles/mongodb
tags: "ghcr.io/scality/backbeat/ci-mongodb:${{ github.sha }}"
cache-from: type=gha
cache-to: type=gha,mode=max
cache-from: type=gha,scope=ci-mongodb
cache-to: type=gha,mode=max,scope=ci-mongodb

tests:
needs: build
Expand Down

0 comments on commit 33ffb08

Please sign in to comment.