diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 540dd82..adbc982 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -7,7 +7,7 @@ on: jobs: deploy: name: Deploy app - runs-on: ubuntu-latest + runs-on: self-hosted steps: - name: Set up SSH and deploy uses: appleboy/ssh-action@v1.0.3 diff --git a/.github/workflows/test_integration_playwright.yml b/.github/workflows/test_integration_playwright.yml index b149492..d131bc7 100644 --- a/.github/workflows/test_integration_playwright.yml +++ b/.github/workflows/test_integration_playwright.yml @@ -18,7 +18,7 @@ on: jobs: integration-tests: - runs-on: ubuntu-latest + runs-on: self-hosted defaults: run: working-directory: integration_test @@ -63,7 +63,7 @@ jobs: path: integration_test/allure-results publish-report: - runs-on: ubuntu-latest + runs-on: self-hosted if: always() needs: integration-tests steps: diff --git a/.github/workflows/test_vitest.yml b/.github/workflows/test_vitest.yml index 886ce7f..fc3bc4e 100644 --- a/.github/workflows/test_vitest.yml +++ b/.github/workflows/test_vitest.yml @@ -16,7 +16,7 @@ on: jobs: unit-tests: - runs-on: ubuntu-latest + runs-on: self-hosted defaults: run: working-directory: . @@ -48,7 +48,7 @@ jobs: path: allure-results publish-report: - runs-on: ubuntu-latest + runs-on: self-hosted if: always() needs: unit-tests steps: diff --git a/deployment/docker-compose-ccva.yml b/deployment/docker-compose-ccva.yml index a7a9969..668e871 100644 --- a/deployment/docker-compose-ccva.yml +++ b/deployment/docker-compose-ccva.yml @@ -22,6 +22,27 @@ services: - node.labels.ccva==true restart_policy: delay: 15s + webapp-mainnet: + image: ${REGISTRY_BASE}/webapp:${IMAGE_VERSION_TAG} + build: + context: ../ + args: + - NPM_AUTH_TOKEN=${NPM_AUTH_TOKEN} + - NEXT_PUBLIC_NETWORK=mainnet + networks: + - postgres + - frontend + environment: + NEXTAUTH_SECRET: ${NEXT_AUTH_SECRET} + VIRTUAL_HOST: https://mainnet-${DEPLOY_BASE_DOMAIN} + DATABASE_URL: postgresql://ccva:${DATABASE_PASSWORD}@postgres:5432/ccva_mainnet + NEXTAUTH_URL: https://mainnet-${DEPLOY_BASE_DOMAIN} + deploy: + placement: + constraints: + - node.labels.ccva==true + restart_policy: + delay: 15s networks: frontend: name: frontend