Cosmetic changes

This commit is contained in:
danilapog 2022-06-06 13:01:02 +03:00
parent 6013ba0f82
commit e480b3da5b
2 changed files with 15 additions and 9 deletions

View file

@ -6,6 +6,10 @@ on:
tags:
- "v*"
- "!v*-stable"
env:
COMPANY_NAME: "onlyoffice"
PRODUCT_NAME: "documentserver"
jobs:
build:
@ -48,14 +52,15 @@ jobs:
echo "Have access to documentserver${{ matrix.edition }} arm64 arch"
echo "All architecture are available >> Build is starting."
DOCKER_TAG=$(echo ${{ steps.tag_name.outputs.SOURCE_TAG }} | sed 's/^.//' )
PRODUCT_EDITION=${{ matrix.edition }} PRODUCT_NAME=documentserver DOCKERFILE=Dockerfile PREFIX_NAME=4testing- TAG=$DOCKER_TAG \
docker buildx bake \
-f docker-bake.hcl ${{ matrix.images }} \
--push
PRODUCT_EDITION=${{ matrix.edition }} COMPANY_NAME=${{ env.COMPANY_NAME }} PRODUCT_NAME=${{ env.PRODUCT_NAME }} \
DOCKERFILE=Dockerfile PREFIX_NAME=4testing- TAG=$DOCKER_TAG \
docker buildx bake \
-f docker-bake.hcl ${{ matrix.images }} \
--push
echo "Build success >> exit with 0"
exit 0
else
echo "Have no access to some architecture documentserver${{ matrix.edition }} >> Build did't started >> Exit with 0."
echo "Have no access to some required architecture documentserver${{ matrix.edition }} >> Build did't started >> Exit with 0."
exit 0
fi
fi

View file

@ -46,10 +46,11 @@ jobs:
if [[ "$IMAGE_STATUS" = "0" ]]; then
echo "Image present on docker.hub >> start build stable version"
echo "FROM ${{ env.COMPANY_NAME }}/4testing-${{ env.PRODUCT_NAME }}${{ matrix.edition }}:$DOCKER_TAG as ${{ env.PRODUCT_NAME }}-stable" >> Dockerfile.stable
PRODUCT_EDITION=${{ matrix.edition }} PRODUCT_NAME=documentserver DOCKERFILE=Dockerfile.stable TAG=$DOCKER_TAG \
docker buildx bake \
-f docker-bake.hcl ${{ matrix.images }} \
--push ;
PRODUCT_EDITION=${{ matrix.edition }} PRODUCT_NAME=${{ env.PRODUCT_NAME }} COMPANY_NAME=${{ env.COMPANY_NAME}} \
DOCKERFILE=Dockerfile.stable TAG=$DOCKER_TAG \
docker buildx bake \
-f docker-bake.hcl ${{ matrix.images }} \
--push ;
else
echo "Image with tag $DOCKER_TAG do not presented on docker.hub >> build will not started >> exit with 0"
exit 0