diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8b005666e..8309bbf4c 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-auto-cleanup' && github.repository_owner == 'ia-toki' runs-on: ubuntu-22.04 env: CONTAINER_REGISTRY_USERNAME: ${{ secrets.CONTAINER_REGISTRY_USERNAME }} @@ -137,11 +137,11 @@ 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 @@ -190,7 +190,7 @@ jobs: deploy-tlx-staging: needs: build - if: github.ref == 'refs/heads/master' && github.repository_owner == 'ia-toki' + if: github.ref == 'refs/heads/grader-auto-cleanup' && github.repository_owner == 'ia-toki' runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 diff --git a/deployment/scripts/build_judgels_grader.sh b/deployment/scripts/build_judgels_grader.sh index 3d840ab0c..17f68f37f 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-auto-cleanup playbooks/build-judgels-grader.yml