Skip to content

Commit

Permalink
ci(github): allow use of built images
Browse files Browse the repository at this point in the history
  • Loading branch information
douglasduteil committed Apr 7, 2024
1 parent 49bdc13 commit 29ea1db
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/end-to-end.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ env:
BREVO_API_KEY: ${{ secrets.BREVO_API_KEY }}
MONCOMPTEPRO_HOST: http://172.18.0.1:3000
CYPRESS_MONCOMPTEPRO_HOST: http://172.18.0.1:3000
CYPRESS_MONCOMPTEPRO_IMAGE: ghcr.io/${{ github.repository }}:${{ github.sha }}
# CYPRESS_BASE_URL: http://172.18.0.1:3000
DO_NOT_SEND_MAIL: "False"
DO_NOT_CHECK_EMAIL_DELIVERABILITY: "True"
Expand Down
3 changes: 3 additions & 0 deletions cypress/support/e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ Cypress.Commands.add("login", (email, password) => {

Cypress.Commands.add("seed", (dirname) => {
const env = { DIRNAME: dirname };
const args = Cypress.env("CYPRESS_MONCOMPTEPRO_IMAGE")
? { up: "-f cypress/docker-compose.built.yml" }
: {};
cy.exec(`docker compose --project-directory ${dirname} up --detach --build`, {
env,
});
Expand Down

0 comments on commit 29ea1db

Please sign in to comment.