Обновить .github/workflows/all_test4.yaml
This commit is contained in:
28
.github/workflows/all_test4.yaml
vendored
28
.github/workflows/all_test4.yaml
vendored
@@ -12,7 +12,7 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
tests:
|
tests:
|
||||||
runs-on: gpu
|
runs-on: ubuntu-22.04-v25.04.01
|
||||||
env:
|
env:
|
||||||
effective_tag: ${{ inputs.tag || github.head_ref || github.ref_name }}
|
effective_tag: ${{ inputs.tag || github.head_ref || github.ref_name }}
|
||||||
steps:
|
steps:
|
||||||
@@ -64,42 +64,16 @@ jobs:
|
|||||||
ssh-add ~/.ssh/id_rsa
|
ssh-add ~/.ssh/id_rsa
|
||||||
echo "SSH_AUTH_SOCK=$SSH_AUTH_SOCK" >> $GITHUB_ENV
|
echo "SSH_AUTH_SOCK=$SSH_AUTH_SOCK" >> $GITHUB_ENV
|
||||||
|
|
||||||
echo "===== Step: Showing current directory and SSH file location ====="
|
|
||||||
pwd
|
|
||||||
ls -la ~/.ssh
|
|
||||||
|
|
||||||
|
|
||||||
#На случай зависших сервисов
|
#На случай зависших сервисов
|
||||||
- name: Clean up existing Docker Compose services (if any)
|
- name: Clean up existing Docker Compose services (if any)
|
||||||
run: |
|
run: |
|
||||||
docker compose -f docker-compose-dev.yaml down || true
|
docker compose -f docker-compose-dev.yaml down || true
|
||||||
|
|
||||||
- name: Extract PORT from docker-compose
|
|
||||||
id: get-port
|
|
||||||
run: |
|
|
||||||
PORT=$(yq '.services.followers.command' docker-compose-dev.yaml | grep -oP -- '--port \K[0-9]+')
|
|
||||||
echo "Extracted PORT=$PORT"
|
|
||||||
if [ -z "$PORT" ]; then
|
|
||||||
PORT=8105
|
|
||||||
fi
|
|
||||||
echo "PORT=$PORT" >> $GITHUB_ENV
|
|
||||||
echo "BIND_PORT=$PORT" >> $GITHUB_ENV
|
|
||||||
|
|
||||||
- name: Start docker-compose services
|
- name: Start docker-compose services
|
||||||
env:
|
env:
|
||||||
DOCKER_BUILDKIT: 1
|
DOCKER_BUILDKIT: 1
|
||||||
SSH_AUTH_SOCK: ${{ env.SSH_AUTH_SOCK }}
|
SSH_AUTH_SOCK: ${{ env.SSH_AUTH_SOCK }}
|
||||||
PORT: ${{ env.PORT }}
|
|
||||||
BIND_PORT: ${{ env.BIND_PORT }}
|
|
||||||
TAG: ${{ env.SANITIZED_TAG }}
|
|
||||||
run: |
|
run: |
|
||||||
echo "SSH_AUTH_SOCK=$SSH_AUTH_SOCK"
|
|
||||||
echo "Using PORT=$PORT and BIND_PORT=$BIND_PORT AAAND TAG=$TAG"
|
|
||||||
ls -l $SSH_AUTH_SOCK
|
|
||||||
|
|
||||||
cat docker-compose-dev.yaml
|
|
||||||
|
|
||||||
docker compose build --ssh default --target build-dev
|
|
||||||
docker compose -f docker-compose-dev.yaml up -d
|
docker compose -f docker-compose-dev.yaml up -d
|
||||||
|
|
||||||
- name: Ruff format check (strict)
|
- name: Ruff format check (strict)
|
||||||
|
|||||||
Reference in New Issue
Block a user