Skip to content

Commit

Permalink
update ci
Browse files Browse the repository at this point in the history
Signed-off-by: Mirko Mollik <[email protected]>
  • Loading branch information
cre8 committed Aug 8, 2024
1 parent 38674f4 commit 616f42d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:

# build the docker image for keycloak
- name: Build Keycloak Docker Image
run: cd deploys/keycloak && docker-compose build keycloak && docker-compose push keycloak
run: cd deploys/keycloak && docker compose build keycloak && docker compose push keycloak

# add the release, build the container and release it with the information for sentry
- name: Build and push images
Expand Down
15 changes: 12 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
run: npx playwright install --with-deps

- name: Build keycloak
run: cd deploys/keycloak && docker-compose build keycloak
run: cd deploys/keycloak && docker compose build keycloak

- name: Add entry to /etc/hosts
run: echo "127.0.0.1 host.testcontainers.internal" | sudo tee -a /etc/hosts
Expand All @@ -56,17 +56,26 @@ jobs:
# token: ${{ secrets.CODECOV_TOKEN }}

- name: Upload playwright results
if: always()
if: always() && steps.check_playwright_results.outputs.exists == 'true'
uses: actions/upload-artifact@v4
with:
name: playwright-results
path: dist/.playwright
retention-days: 30

- name: Check if playwright results exist
id: check_playwright_results
run: echo "exists=$(if [ -d dist/.playwright ]; then echo true; else echo false; fi)" >> $GITHUB_ENV


- name: Upload testcontainer logs
if: always()
if: always() && steps.check_testcontainer_logs.outputs.exists == 'true'
uses: actions/upload-artifact@v4
with:
name: testcontainer-logs
path: tmp/logs
retention-days: 30

- name: Check if testcontainer logs exist
id: check_testcontainer_logs
run: echo "exists=$(if [ -d tmp/logs ]; then echo true; else echo false; fi)" >> $GITHUB_ENV

0 comments on commit 616f42d

Please sign in to comment.