mirror of
https://github.com/hcengineering/platform.git
synced 2025-05-10 17:30:51 +00:00
Github Action: add hulykvs build job (#8878)
Some checks failed
CI / hulykvs-build (push) Has been cancelled
CI / build (push) Has been cancelled
CI / uitest (push) Has been cancelled
CI / uitest-pg (push) Has been cancelled
CI / uitest-qms (push) Has been cancelled
CI / uitest-workspaces (push) Has been cancelled
CI / dist-build (push) Has been cancelled
CI / svelte-check (push) Has been cancelled
CI / formatting (push) Has been cancelled
CI / test (push) Has been cancelled
CI / docker-build (push) Has been cancelled
Some checks failed
CI / hulykvs-build (push) Has been cancelled
CI / build (push) Has been cancelled
CI / uitest (push) Has been cancelled
CI / uitest-pg (push) Has been cancelled
CI / uitest-qms (push) Has been cancelled
CI / uitest-workspaces (push) Has been cancelled
CI / dist-build (push) Has been cancelled
CI / svelte-check (push) Has been cancelled
CI / formatting (push) Has been cancelled
CI / test (push) Has been cancelled
CI / docker-build (push) Has been cancelled
This commit is contained in:
parent
c5ef23cce8
commit
02759df0fd
35
.github/workflows/main.yml
vendored
35
.github/workflows/main.yml
vendored
@ -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') }}
|
||||
|
Loading…
Reference in New Issue
Block a user