Skip to content

Commit

Permalink
build grader
Browse files Browse the repository at this point in the history
  • Loading branch information
fushar committed May 28, 2024
1 parent 00dbf92 commit a4fcd00
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:
jobs:
test:
runs-on: ubuntu-22.04
if: false
services:
rabbitmq:
image: rabbitmq
Expand Down Expand Up @@ -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 }}
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
name: ghcr.io/ia-toki/judgels/grader
tag: "{{ app_version | default('latest', true) }}"
source: pull
force_source: "{{ app_version | default('latest', true) == 'latest' }}"
force_source: True
tags: config

- name: Run a judgels grader container
Expand Down
2 changes: 1 addition & 1 deletion deployment/scripts/build_judgels_grader.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion deployment/scripts/deploy_judgels_grader.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ set -ex
cd deployment/ansible

ansible --version
ansible-playbook -e @env/vars.yml playbooks/deploy-judgels-grader.yml
ansible-playbook -e @env/vars.yml -e app_version=grader-auto-cleanup playbooks/deploy-judgels-grader.yml

0 comments on commit a4fcd00

Please sign in to comment.