From b265d9589de102cb9b624cc7faa54442c0dda1e3 Mon Sep 17 00:00:00 2001 From: SomesH S Date: Mon, 27 May 2024 15:12:41 +0000 Subject: [PATCH] add job fs --- .github/workflows/build-release.yml | 34 +++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index 2eca1e2..6da9157 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -68,3 +68,37 @@ jobs: sssomeshhh/rentify:be-${{ github.sha }} build-args: XE=fe + + fs: + runs-on: ubuntu-22.04 + needs: + - be + - fe + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Login to Docker Hub + uses: docker/login-action@v3.1.0 + with: + registry: docker.io + username: sssomeshhh + password: ${{ secrets.DOCKER_HUB_TOKEN }} + - name: Setup Docker Buildx + id: setup_buildx + uses: docker/setup-buildx-action@v3.3.0 + - name: Build Target + uses: docker/build-push-action@v5.3.0 + with: + builder: ${{ steps.setup_buildx.name }} + context: . + file: Dockerfile + target: fs + cache-from: | + type=registry,ref=sssomeshhh/cache:rentify-fs + cache-to: | + type=registry,ref=sssomeshhh/cache:rentify-fs + load: false + push: true + tags: | + sssomeshhh/rentify:fs + sssomeshhh/rentify:fs-${{ github.sha }}