diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c7a93ee3bf..bfb30f4023 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -676,6 +676,41 @@ jobs: echo Pushing love-agent release of tag ${{ github.ref }} cd ./services/ai-bot/love-agent pnpm docker:push + + hulykvs-build: + if: ${{ startsWith(github.ref, 'refs/tags/v') || startsWith(github.ref, 'refs/tags/s') }} + runs-on: ubuntu-latest + env: + source_repo: hcengineering/hulykvs + source_ref: v0.1.1 + docker_user: ${{ vars.DOCKER_USER || 'hardcoreeng' }} + docker_password: ${{ secrets.DOCKER_ACCESS_TOKEN }} + docker_image: "${{ vars.DOCKER_USER || 'hardcoreeng' }}/hulykvs:${{ github.head_ref || github.ref_name }}" + + steps: + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ env.docker_user }} + password: ${{ env.docker_password }} + + - name: Checkout + uses: actions/checkout@v4 + with: + repository: ${{ env.source_repo }} + ref: ${{ env.source_ref }} + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Build and Push + uses: docker/build-push-action@v6 + with: + context: hulykvs_server + push: true + tags: "${{ env.docker_image }}" + platforms: linux/amd64,linux/arm64 + dist-build: # if: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') || startsWith(github.ref, 'refs/tags/s') }} if: ${{ startsWith(github.ref, 'refs/tags/v') || startsWith(github.ref, 'refs/tags/s') }}