File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed
Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 1313 with :
1414 image_tag : ${{ github.ref_name == 'master' && 'rolling' || github.ref_name == 'release/current' && 'prerelease' || github.ref_name == 'issue/13571-build-images' && 'test-13571' }}
1515 client_python_local : true
16+ publish_to_registry : true
1617 secrets : inherit
1718
Original file line number Diff line number Diff line change @@ -24,15 +24,15 @@ jobs:
2424 docker run--name build-package \
2525 -v ${{ github.workspace }}:/home/workspace \
2626 nikolaik/python-nodejs:python3.11-nodejs22 \
27- sh -c ' set -eux
27+ sh -c " set -eux
2828 cd /home/workspace
2929 apt-get update --allow-insecure-repositories --allow-unauthenticated && apt-get install -y build-essential libffi-dev curl g++ make python3 python3-dev
3030 npm install -g node-gyp
3131 find . -name requirements.txt -exec sed 's|^pycti==.*$|pycti @ git+https://github.com/OpenCTI-Platform/opencti@${{ github.ref_name }}#subdirectory=client-python|' -i {} \;
3232 cd opencti-platform/opencti-graphql
3333 yarn install
3434 yarn build
35- '
35+ "
3636
3737 - name : Build OpenCTI debian package
3838 run : |
@@ -74,15 +74,15 @@ jobs:
7474 docker run--name build-package \
7575 -v ${{ github.workspace }}:/home/workspace \
7676 nikolaik/python-nodejs:python3.11-nodejs22-alpine \
77- sh -c ' set -eux
77+ sh -c " set -eux
7878 cd /home/workspace
7979 apk update && apk upgrade && apk --no-cache add git tini gcc g++ make musl-dev python3 python3-dev postfix postfix-pcre build-base libmagic libffi-dev curl
8080 npm install -g node-gyp
8181 find . -name requirements.txt -exec sed 's|^pycti==.*$|pycti @ git+https://github.com/OpenCTI-Platform/opencti@${{ github.ref_name }}#subdirectory=client-python|' -i {} \;
8282 cd opencti-platform/opencti-graphql
8383 yarn install
8484 yarn build
85- '
85+ "
8686
8787 - name : Build OpenCTI musl package
8888 run : |
Original file line number Diff line number Diff line change 7575 images : ${{ inputs.registry }}
7676 tags : type=raw,value=${{ inputs.image_tag }}
7777
78- - name : Build and push
78+ - name : Build and ${{ inputs.publish_to_registry && ' push' || 'export as tar' }}
7979 uses : docker/build-push-action@v6
8080 with :
8181 context : opencti-platform
You can’t perform that action at this time.
0 commit comments