diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 016e908..0919c5d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,10 +11,16 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - name: Cache Docker layers + uses: actions/cache@v3 + with: + path: /tmp/.buildx-cache + key: ${{ runner.os }}-buildx-${{ github.sha }} + restore-keys: | + ${{ runner.os }}-buildx- - name: Build the Docker image run: | docker buildx create --use - docker buildx build \ --tag unicef/hope_country_workspace:${{ github.sha }} \ --load \ @@ -23,4 +29,4 @@ jobs: ./ - name: Run the tests run: | - docker compose -f ./.github/docker/compose.ci.yml up --exit-code-from tests \ No newline at end of file + image=unicef/hope_country_workspace:${{ github.sha }} docker compose -f ./.github/docker/compose.ci.yml up --exit-code-from tests \ No newline at end of file