From 1a0f449c48118e51c072abebaf2ef79918452a12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=AA=20Minh=20Sang?= Date: Fri, 7 Nov 2025 15:29:01 +0700 Subject: [PATCH] Create build.yml --- .github/workflows/build.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..a11089cb --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,31 @@ +name: Build Docker Images (by Sang) + +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: 🔹 Checkout code + uses: actions/checkout@v4 + + - name: 🔹 Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: 🔹 Build web image (no push) + uses: docker/build-push-action@v6 + with: + context: ./web + push: false + tags: sang-web:latest + + - name: 🔹 Build api image (no push) + uses: docker/build-push-action@v6 + with: + context: ./api + push: false + tags: sang-api:latest