diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6304b106b0..e54326b717 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -109,7 +109,7 @@ jobs: - name: Cache Docker images uses: ScribeMD/docker-cache@0.5.0 with: - key: docker-${{ steps.get-docker-image.outputs.base_image }}-${{ matrix.platform }} + key: docker-${{ matrix.integration }}-${{ steps.get-docker-image.outputs.base_image }}-${{ matrix.platform }} - name: Build uses: docker/build-push-action@v6 @@ -118,9 +118,14 @@ jobs: file: ${{ steps.prepare_tags.outputs.dockerfile_path }} platforms: ${{ matrix.platform }} push: false + load: true cache-from: type=gha cache-to: type=gha,mode=max tags: ${{ steps.prepare_tags.outputs.tags }} build-args: | BUILD_CONTEXT=${{ steps.prepare_tags.outputs.context_dir }} INTEGRATION_VERSION=${{ steps.prepare_tags.outputs.version }} + + - name: Verify Built Image + run: | + docker run --platform ${{ matrix.platform }} --rm --entrypoint bash ${{ steps.prepare_tags.outputs.tags }} -c 'ocean version'