Cosmetic changes
This commit is contained in:
parent
6013ba0f82
commit
e480b3da5b
15
.github/workflows/build-4testing.yml
vendored
15
.github/workflows/build-4testing.yml
vendored
|
@ -6,6 +6,10 @@ on:
|
||||||
tags:
|
tags:
|
||||||
- "v*"
|
- "v*"
|
||||||
- "!v*-stable"
|
- "!v*-stable"
|
||||||
|
|
||||||
|
env:
|
||||||
|
COMPANY_NAME: "onlyoffice"
|
||||||
|
PRODUCT_NAME: "documentserver"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
@ -48,14 +52,15 @@ jobs:
|
||||||
echo "Have access to documentserver${{ matrix.edition }} arm64 arch"
|
echo "Have access to documentserver${{ matrix.edition }} arm64 arch"
|
||||||
echo "All architecture are available >> Build is starting."
|
echo "All architecture are available >> Build is starting."
|
||||||
DOCKER_TAG=$(echo ${{ steps.tag_name.outputs.SOURCE_TAG }} | sed 's/^.//' )
|
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 \
|
PRODUCT_EDITION=${{ matrix.edition }} COMPANY_NAME=${{ env.COMPANY_NAME }} PRODUCT_NAME=${{ env.PRODUCT_NAME }} \
|
||||||
docker buildx bake \
|
DOCKERFILE=Dockerfile PREFIX_NAME=4testing- TAG=$DOCKER_TAG \
|
||||||
-f docker-bake.hcl ${{ matrix.images }} \
|
docker buildx bake \
|
||||||
--push
|
-f docker-bake.hcl ${{ matrix.images }} \
|
||||||
|
--push
|
||||||
echo "Build success >> exit with 0"
|
echo "Build success >> exit with 0"
|
||||||
exit 0
|
exit 0
|
||||||
else
|
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
|
exit 0
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
9
.github/workflows/build-stable.yml
vendored
9
.github/workflows/build-stable.yml
vendored
|
@ -46,10 +46,11 @@ jobs:
|
||||||
if [[ "$IMAGE_STATUS" = "0" ]]; then
|
if [[ "$IMAGE_STATUS" = "0" ]]; then
|
||||||
echo "Image present on docker.hub >> start build stable version"
|
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
|
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 \
|
PRODUCT_EDITION=${{ matrix.edition }} PRODUCT_NAME=${{ env.PRODUCT_NAME }} COMPANY_NAME=${{ env.COMPANY_NAME}} \
|
||||||
docker buildx bake \
|
DOCKERFILE=Dockerfile.stable TAG=$DOCKER_TAG \
|
||||||
-f docker-bake.hcl ${{ matrix.images }} \
|
docker buildx bake \
|
||||||
--push ;
|
-f docker-bake.hcl ${{ matrix.images }} \
|
||||||
|
--push ;
|
||||||
else
|
else
|
||||||
echo "Image with tag $DOCKER_TAG do not presented on docker.hub >> build will not started >> exit with 0"
|
echo "Image with tag $DOCKER_TAG do not presented on docker.hub >> build will not started >> exit with 0"
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Reference in a new issue