From 5f9b6ace5fef8c963467dc80ce055c90bcba440b Mon Sep 17 00:00:00 2001 From: Ashar Fuadi Date: Sun, 26 May 2024 20:37:34 +0700 Subject: [PATCH] build grader --- .github/workflows/ci.yml | 9 ++++----- deployment/scripts/build_judgels_grader.sh | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8b005666e..90dde09a0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,6 +11,7 @@ on: jobs: test: runs-on: ubuntu-22.04 + if: false services: rabbitmq: image: rabbitmq @@ -87,8 +88,7 @@ jobs: yarn ci build: - needs: test - if: github.ref == 'refs/heads/master' && github.repository_owner == 'ia-toki' + if: github.ref == 'refs/heads/grader-poller' && github.repository_owner == 'ia-toki' runs-on: ubuntu-22.04 env: CONTAINER_REGISTRY_USERNAME: ${{ secrets.CONTAINER_REGISTRY_USERNAME }} @@ -137,15 +137,14 @@ jobs: ${{ runner.os }}-yarn- - name: Build judgels-server - if: steps.changed-files.outputs.judgels-server == '1' + if: false run: ./deployment/scripts/build_judgels_server.sh - name: Build judgels-client - if: steps.changed-files.outputs.judgels-client == '1' + if: false run: ./deployment/scripts/build_judgels_client.sh - name: Build judgels-grader - if: steps.changed-files.outputs.judgels-grader == '1' run: ./deployment/scripts/build_judgels_grader.sh deploy-web: diff --git a/deployment/scripts/build_judgels_grader.sh b/deployment/scripts/build_judgels_grader.sh index 3d840ab0c..e3dce8c49 100755 --- a/deployment/scripts/build_judgels_grader.sh +++ b/deployment/scripts/build_judgels_grader.sh @@ -12,4 +12,4 @@ cp init.sh build/distributions cd ../../deployment/ansible ansible --version -ansible-playbook playbooks/build-judgels-grader.yml +ansible-playbook -e app_version=grader-poller playbooks/build-judgels-grader.yml