-
Notifications
You must be signed in to change notification settings - Fork 20
30 lines (28 loc) · 1.44 KB
/
trigger_ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
on:
pull_request:
jobs:
mirror_repo:
environment: GITLAB
runs-on: self-hosted
steps:
- name: Sync Mirror Repository
run: |
#!/bin/bash
curl --request POST --header "PRIVATE-TOKEN:${{ secrets.TOKEN }}" "${{ secrets.MIRROR_URL }}"
trigger-ci:
environment: GITLAB
needs: mirror_repo
runs-on: self-hosted
steps:
- name: Trigger Pipeline
run: |
#!/bin/bash
# Get latest VLLM RELEASED VERSION from https://github.com/triton-inference-server/vllm_backend/releases
TAG=$(curl https://api.github.com/repos/triton-inference-server/vllm_backend/releases/latest | grep -i "tag_name" | awk -F '"' '{print $4}')
export TRITON_CONTAINER_VERSION=${TAG#v} # example: 24.06
echo "TRITON_CONTAINER_VERSION = ${TRITON_CONTAINER_VERSION}"
# Get latest VLLM RELEASED VERSION from https://github.com/vllm-project/vllm/releases
TAG=$(curl https://api.github.com/repos/vllm-project/vllm/releases/latest | grep -i "tag_name" | awk -F '"' '{print $4}')
export VLLM_VERSION=${TAG#v} # example: 0.5.3.post1
echo "VLLM_VERSION = ${VLLM_VERSION}"
curl --fail --request POST --form token=${{ secrets.PIPELINE_TOKEN }} -F ref=${GITHUB_HEAD_REF} -F variables[BUILD_OPTION]="BUILD_SOURCE" -F variables[TRITON_CONTAINER_VERSION]="TRITON_CONTAINER_VERSION" -F variables[VLLM_VERSION]="VLLM_VERSION" "${{ secrets.PIPELINE_URL }}"