From 15465d077133e84dec69f8a47657f65383435fc2 Mon Sep 17 00:00:00 2001 From: Joep Meindertsma Date: Tue, 14 Mar 2023 11:20:43 +0100 Subject: [PATCH] #606 run docker image in CI --- .github/workflows/docker.yml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 6dfa7f0a6..5ae147afb 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -49,6 +49,26 @@ jobs: type=semver,pattern={{major}} type=sha + - name: Build and push Docker image + uses: docker/build-push-action@v4 + with: + context: . + push: false + provenance: false + platforms: linux/amd64,linux/arm64 + tags: local + labels: ${{ steps.meta.outputs.labels }} + + - name: Run docker image + run: nohup docker run -p 80:80 joepmeneer/atomic-server:local --initialize & + + - name: Setup and run end-to-end tests + working-directory: ./server/e2e_tests/ + run: | + pnpm install + pnpm run install-playwright + pnpm run test + - name: Build and push Docker image uses: docker/build-push-action@v4 with: @@ -57,4 +77,4 @@ jobs: provenance: false platforms: linux/amd64,linux/arm64 tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} + labels: ${{ steps.meta.outputs.labels }}e