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 }}