mirror of
https://github.com/hcengineering/platform.git
synced 2025-05-12 18:35:45 +00:00
Github Action: add hulykvs build job
Signed-off-by: Alexey Aristov <aav@acm.org>
This commit is contained in:
parent
85d30c5c51
commit
b7ed4d1389
23
.github/workflows/main.yml
vendored
23
.github/workflows/main.yml
vendored
@ -676,6 +676,29 @@ jobs:
|
|||||||
echo Pushing love-agent release of tag ${{ github.ref }}
|
echo Pushing love-agent release of tag ${{ github.ref }}
|
||||||
cd ./services/ai-bot/love-agent
|
cd ./services/ai-bot/love-agent
|
||||||
pnpm docker:push
|
pnpm docker:push
|
||||||
|
|
||||||
|
hulykvs-build:
|
||||||
|
name: Build Hulykvs
|
||||||
|
if: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') || startsWith(github.ref, 'refs/tags/s') }}
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
source_repo: https://github.com/hcengineering/hulykvs.git
|
||||||
|
source_ref: v0.1.0
|
||||||
|
docker_user: hardcoreeng
|
||||||
|
docker_password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
|
||||||
|
docker_image: "hardcoreeng/hulykvs:${{ github.ref_name }}"
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Login to Docker Hub
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
username: ${{ env.docker_user }}
|
||||||
|
password: ${{ env.docker_password }}
|
||||||
|
- name: Clone
|
||||||
|
run: git clone -q --single-branch --branch ${{ env.source_ref }} ${{ env.source_repo }} .
|
||||||
|
- name: Build & Push
|
||||||
|
run: cd hulykvs_server && docker build -t ${{ env.docker_image }} . && docker push ${{ env.docker_image }}
|
||||||
|
|
||||||
dist-build:
|
dist-build:
|
||||||
# if: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') || startsWith(github.ref, 'refs/tags/s') }}
|
# 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') }}
|
if: ${{ startsWith(github.ref, 'refs/tags/v') || startsWith(github.ref, 'refs/tags/s') }}
|
||||||
|
Loading…
Reference in New Issue
Block a user