From 60e50cb5dbbb1a32245bdf4ada85789d6e600d34 Mon Sep 17 00:00:00 2001 From: Alex Holliday Date: Tue, 16 Dec 2025 23:19:04 +0000 Subject: [PATCH] action --- .github/workflows/deploy-images-feat-saas.yml | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 .github/workflows/deploy-images-feat-saas.yml diff --git a/.github/workflows/deploy-images-feat-saas.yml b/.github/workflows/deploy-images-feat-saas.yml new file mode 100644 index 000000000..4925dc99a --- /dev/null +++ b/.github/workflows/deploy-images-feat-saas.yml @@ -0,0 +1,54 @@ +name: Build images (feat/saas) + +on: + push: + branches: ["feat/saas"] + workflow_dispatch: + +env: + PLATFORMS: linux/amd64,linux/arm64 + TAG: latest + IMAGE_CLIENT: ghcr.io/ajhollid/checkmate-saas-client + IMAGE_SERVER: ghcr.io/ajhollid/checkmate-saas-server + +jobs: + build-and-push: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Set up Docker Buildx (multiarch) + uses: docker/setup-buildx-action@v3 + with: + install: true + driver-opts: | + network=host + buildkitd-flags: --debug + + - name: Log in to GitHub Container Registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ secrets.GHCR_USER }} + password: ${{ secrets.GHCR_AJHOLLID_TOKEN }} + + - name: Build and push Client (multi-arch) + uses: docker/build-push-action@v5 + with: + context: client + file: client/Dockerfile + platforms: ${{ env.PLATFORMS }} + push: true + tags: ${{ env.IMAGE_CLIENT }}:${{ env.TAG }} + + - name: Build and push Server (multi-arch) + uses: docker/build-push-action@v5 + with: + context: server + file: server/Dockerfile + platforms: ${{ env.PLATFORMS }} + push: true + tags: ${{ env.IMAGE_SERVER }}:${{ env.TAG }}