Изменен тип окружения для сборки с ubuntu-latest на dind в конфигурации docker-build.yml; удалены проверки на доступность коммита в основной ветке.
This commit is contained in:
@@ -11,7 +11,7 @@ permissions:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: dind
|
||||
env:
|
||||
REGISTRY: hub.realmanual.ru
|
||||
IMAGE_NAME: pub/sqlite-backup/backup
|
||||
@@ -21,18 +21,6 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Ensure tag commit is reachable from main
|
||||
shell: bash
|
||||
run: |
|
||||
set -euo pipefail
|
||||
git fetch --no-tags --depth=0 origin main
|
||||
if git merge-base --is-ancestor "$GITHUB_SHA" origin/main; then
|
||||
echo "Commit is on main history. Proceeding."
|
||||
else
|
||||
echo "Tag commit is not from main. Skipping build." >&2
|
||||
exit 0
|
||||
fi
|
||||
|
||||
- name: Extract tag
|
||||
id: vars
|
||||
shell: bash
|
||||
|
Reference in New Issue
Block a user