diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f4f39f9..490890e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -46,8 +46,25 @@ jobs: BACKEND_IMAGE: ${{ vars.BACKEND_IMAGE || 'ghcr.io/morbalint/kemkas-backend:b8565f8e' }} steps: - uses: actions/checkout@v4 + - name: Create GitHub App installation token + id: app-token + uses: actions/create-github-app-token@v1 + with: + app-id: ${{ secrets.E2E_APP_ID }} + private-key: ${{ secrets.E2E_APP_KEY }} + owner: ${{ github.repository_owner }} + repositories: | + kemkas-backend - name: Log in to GitHub Container Registry - run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: x-access-token + password: ${{ steps.app-token.outputs.token }} + - name: Pull images + run: docker compose -f docker-compose.e2e.yaml pull + - name: Build local images + run: docker compose -f docker-compose.e2e.yaml build --pull - name: Run Docker Compose E2E tests run: docker compose -f docker-compose.e2e.yaml up --build --abort-on-container-exit --exit-code-from e2e e2e - name: Upload Playwright HTML report