From b46da5fbad7effd9cb5e815f694830a2c57d15a4 Mon Sep 17 00:00:00 2001 From: Ly Tuan Kiet Date: Tue, 10 Dec 2024 17:06:30 +0700 Subject: [PATCH] refactor: enhance quiz retrieval and schema consistency - Improved quiz retrieval logic by ensuring a valid random index is calculated, preventing errors when no quizzes are available. - Updated the Quiz schema to streamline field names and enhance clarity, replacing existing fields with more descriptive alternatives. - Reformatted code for better readability and consistency, adhering to style guidelines for improved maintainability. --- .github/workflows/ci.nocache.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/ci.nocache.yml diff --git a/.github/workflows/ci.nocache.yml b/.github/workflows/ci.nocache.yml new file mode 100644 index 0000000..e55fd47 --- /dev/null +++ b/.github/workflows/ci.nocache.yml @@ -0,0 +1,25 @@ +name: CI Nocache + +# Controls when the workflow will run +on: + workflow_dispatch: + +jobs: + build: + runs-on: self-hosted + + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - name: Checkout repository with submodules + uses: actions/checkout@v4 + with: + submodules: true # Recursively clone submodules + token: ${{ secrets.PAT }} + fetch-depth: 0 # Fetch full history to avoid issues with shallow clones + + # Pull the latest version of base images and rebuild without cache + - name: Build and deploy + run: | + docker compose pull + docker compose build --no-cache + docker compose up -d