From fc1669dcde3d6b8a3f7f05a2aaef6a7ef084f777 Mon Sep 17 00:00:00 2001 From: Jacopo Gasparetto Date: Wed, 29 Jan 2025 19:59:27 +0100 Subject: [PATCH] Try with built docker image --- .github/workflows/release.yaml | 52 +++++++++++++++++----------------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 3e78d1a..43347b1 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -23,27 +23,27 @@ jobs: - name: Checkout uses: actions/checkout@v4 - # - name: Setup QEMU - # uses: docker/setup-qemu-action@v3 + - name: Setup QEMU + uses: docker/setup-qemu-action@v3 - # - name: Setup Docker Buildx - # uses: docker/setup-buildx-action@v3 + - name: Setup Docker Buildx + uses: docker/setup-buildx-action@v3 - # - name: Docker Login - # if: ${{ github.ref == 'refs/heads/main' }} - # uses: docker/login-action@v3 - # with: - # username: ${{ secrets.DOCKERHUB_USERNAME }} - # password: ${{ secrets.DOCKERHUB_PASSWORD }} + - name: Docker Login + if: ${{ github.ref == 'refs/heads/main' }} + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_PASSWORD }} - # - name: Docker Metadata - # id: meta - # uses: docker/metadata-action@v5 - # with: - # images: cnafsoftwaredevel/iam-dashboard - # # tags: | - # # type=sha - # # type=ref,event=tag + - name: Docker Metadata + id: meta + uses: docker/metadata-action@v5 + with: + images: cnafsoftwaredevel/iam-dashboard + # tags: | + # type=sha + # type=ref,event=tag - name: Retrieve Cypress and Nextjs secret env files env: @@ -53,18 +53,18 @@ jobs: echo ${CYPRESS_ENV_BASE64} | base64 -d > cypress.env.json echo ${NEXT_ENV_BASE64} | base64 -d > .env - # - name: Build docker - # uses: docker/build-push-action@v6 - # with: - # context: . - # load: true - # tags: cnafsoftwaredevel/iam-dashboard:latest - # # tags: ${{ steps.meta.outputs.tags }} + - name: Build docker + uses: docker/build-push-action@v6 + with: + context: . + load: true + tags: cnafsoftwaredevel/iam-dashboard:latest + # tags: ${{ steps.meta.outputs.tags }} - name: Cypress Run uses: cypress-io/github-action@v6 with: - start: npm run dev + start: docker run --rm 3000:3000 cnafsoftwaredevel/iam-dashboard:latest - uses: actions/upload-artifact@v4 # add the line below to store screenshots only on failures