diff --git a/.github/workflows/e2e_tests.yml b/.github/workflows/e2e_tests.yml index b61f7fad..b591e836 100644 --- a/.github/workflows/e2e_tests.yml +++ b/.github/workflows/e2e_tests.yml @@ -105,8 +105,19 @@ jobs: export DATA_DB_CONN_STRING="postgresql://${POSTGRES_DATA_USER}:${POSTGRES_DATA_PASSWORD}@${POSTGRES_DATA_HOST}:${POSTGRES_DATA_PORT}/${POSTGRES_DATA_DB}" export POSTGRES_RECIPE_CONN_STRING="postgresql://${POSTGRES_RECIPE_USER}:${POSTGRES_RECIPE_PASSWORD}@${POSTGRES_RECIPE_HOST}:${POSTGRES_RECIPE_PORT}/${POSTGRES_RECIPE_DB}" - docker buildx create --use --driver=docker-container - docker buildx bake -f ./docker-compose-dev.yml --set *.cache-to="type=gha,mode=max" --set *.cache-from="type=gha" --load --set *.platform=linux/amd64 + #docker buildx create --use --driver=docker-container + #docker buildx bake -f ./docker-compose-dev.yml --set *.cache-to="type=gha,mode=max" --set *.cache-from="type=gha" --load --set *.platform=linux/amd64 + + - uses: docker/setup-buildx-action@v2 + + - name: Build the backend image with cache + uses: docker/build-push-action@v4 + with: + load: true + #context: backend + file: ./docker-compose-dev.yml + cache-from: type=gha,scope=$GITHUB_REF_NAME-backend-dev + cache-to: type=gha,scope=$GITHUB_REF_NAME-backend-dev,mode=max - name: Spin up services