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