From fb57a204084738c48deb71a09ee2c7d3b17fda43 Mon Sep 17 00:00:00 2001 From: Arie Timmerman Date: Wed, 27 Aug 2025 18:57:17 +0000 Subject: [PATCH 1/3] fix docker image fails & CORS on live environment Fixes #7 --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 231a780..c787e4d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -49,7 +49,7 @@ jobs: git_push_flags: '--force' - name: Build image - run: docker build -t scimverify-test . + run: docker build -t scimverify-test . - name: Authenticate to GHCR run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin @@ -57,5 +57,5 @@ jobs: - name: Push image run: docker push ghcr.io/${{ github.repository }}:latest - - name: Test Docker image - run: bash ./test-docker.sh + - name: Test Docker image + run: bash ./test-docker.sh From 3c7eab8e9b67d42293ff7d59e57f73bdde7184d7 Mon Sep 17 00:00:00 2001 From: Arie Timmerman Date: Wed, 27 Aug 2025 18:59:34 +0000 Subject: [PATCH 2/3] fix --- .github/workflows/ci.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c787e4d..2b1c499 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,9 +1,9 @@ name: CI + on: push: - branches: - - main + pull_request: jobs: build: @@ -35,26 +35,35 @@ jobs: - name: Install Netlify CLI run: npm install -g netlify-cli + - name: Deploy to Netlify + if: github.ref == 'refs/heads/main' run: netlify deploy --prod --dir=./site/.vitepress/dist env: NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} + - name: Push to dokku + if: github.ref == 'refs/heads/main' uses: dokku/github-action@master with: git_remote_url: "ssh://dokku@51.15.42.142:22/verify" ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }} git_push_flags: '--force' + - name: Build image run: docker build -t scimverify-test . + - name: Authenticate to GHCR + if: github.ref == 'refs/heads/main' run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin + - name: Push image + if: github.ref == 'refs/heads/main' run: docker push ghcr.io/${{ github.repository }}:latest - name: Test Docker image From 1623128d237bee952533062a098684629669e97d Mon Sep 17 00:00:00 2001 From: Arie Timmerman Date: Wed, 27 Aug 2025 19:09:16 +0000 Subject: [PATCH 3/3] cleansing --- .github/workflows/ci.yml | 3 --- test-docker.sh | 8 -------- 2 files changed, 11 deletions(-) delete mode 100644 test-docker.sh diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2b1c499..cdfba5c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -65,6 +65,3 @@ jobs: - name: Push image if: github.ref == 'refs/heads/main' run: docker push ghcr.io/${{ github.repository }}:latest - - - name: Test Docker image - run: bash ./test-docker.sh diff --git a/test-docker.sh b/test-docker.sh deleted file mode 100644 index 27d38b5..0000000 --- a/test-docker.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash -set -e - -echo "Building Docker image..." -docker build -t scimverify-test . - -echo "Running tests in Docker container..." -docker run --rm scimverify-test npm test