diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 085bde3..76b6c6c 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -10,10 +10,17 @@ on: description: 'Set version that will be used for images tag' type: string required: true + node-env: + description: 'Set custom node_env build arg if needed' + type: string + required: false + default: production + ac-opts: + description: 'Set custom ac_opts build arg if needed' + type: string + required: false + default: no_reg -env: - PRODUCT_VERSION: ${{ github.event.inputs.version }} - jobs: build: name: "Build tag: ${{ github.event.inputs.version }}" @@ -30,7 +37,17 @@ jobs: - name: Build connector shell: bash + env: + PRODUCT_VERSION: ${{ github.event.inputs.version }} + NODE_ENV: ${{ github.event.inputs.node-env }} + AC_OPTS: ${{ github.event.inputs.ac-opts }} run: | - docker compose --env-file ./.env.docker.example build + docker compose --env-file ./.env.docker.example \ + build \ + --build-arg NODE_ENV=${NODE_ENV} \ + --build-arg AC_OPTS=${AC_OPTS} docker compose push + + # Some service info about build docker images + docker image inspect onlyoffice/confluence-cloud:${PRODUCT_VERSION}