Files
Ly Tuan Kiet 7699a07d1d chore: remove redundant Docker Compose down command in CI workflow
- Eliminated the `docker compose down` command from the CI workflow to streamline the build and deployment process. This change simplifies the CI configuration and enhances efficiency by reducing unnecessary steps.
2024-12-05 18:47:31 +07:00

29 lines
745 B
YAML

name: CI
# Controls when the workflow will run
on:
push:
branches: ['main']
pull_request:
branches: ['main']
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 up --build -d