Merge pull request #1645 from lemmav/feature/action-build

Add a tag action build
This commit is contained in:
Sergey Kirichenko 2023-08-28 10:20:52 +03:00 committed by GitHub
commit af50fd07ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,6 +5,7 @@ on:
branches:
- 'hotfix/v**'
- 'release/v**'
- 'feature/v*-git-action'
env:
DOCKER_PATH: "/build/install/docker"
REPO: "onlyoffice"
@ -33,8 +34,8 @@ jobs:
- name: Build 4testing
run: |
cd .${DOCKER_PATH}
TAG=${{github.run_number}}
export DOCKER_TAG=$(echo "${GITHUB_REF_NAME}" | sed '/^release\b\|^hotfix\b/s/release.*\/v\|hotfix.*\/v//').$TAG
DOCKER_TAG=$(echo "${GITHUB_REF_NAME}" | sed '/^release\b\|^hotfix\b\|^feature\b/s/release.*\/\|hotfix.*\/\|feature.*\///; s/-git-action$//; s/^v//').${{github.run_number}}
export DOCKER_TAG
docker buildx bake -f build.yml \
--set *.args.GIT_BRANCH=$GITHUB_REF_NAME \