This commit is contained in:
Sergey Zhemoytel 2025-01-03 16:29:57 +03:00
parent 6f27983f5f
commit dace9cadbc

View file

@ -1,4 +1,4 @@
name: CI/CD Pipeline
version: '1'
on:
push:
@ -10,6 +10,7 @@ on:
jobs:
build:
stage: build
runs-on: r11_builder
env:
PUBLICATOR: ${{ secrets.PUBLICATOR }}
@ -20,7 +21,7 @@ jobs:
# with:
# fetch-depth: 0
- name: git fetch
- name: Checkout code
run: |
git clone ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git ${GITHUB_WORKSPACE}
git checkout ${GITHUB_REF_NAME}
@ -29,12 +30,12 @@ jobs:
source .env
echo "SPECFILE = ${SPECFILE}"
- name: _Debug Print environment variables
- name: Debug Print environment variables
run: |
source .env
env
- name: _Debug Current directory and files
- name: Debug os version and check exists spec
run: |
cat /etc/*release*
echo "check specfile" && [ -f ${SPECFILE} ] || exit 1