Skip to content

Commit

Permalink
Added e2e tests GH action, with docker compose build - debugging action
Browse files Browse the repository at this point in the history
  • Loading branch information
dividor committed Jul 1, 2024
1 parent b06dd2d commit a65a56f
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/e2e_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a65a56f

Please sign in to comment.