Skip to content

Commit 3f14815

Browse files
committed
publish image to filigran registry and fix package build
1 parent 97530c7 commit 3f14815

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

.github/workflows/cd-publish-and-deploy.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,6 @@ jobs:
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

.github/workflows/cd-publish-package.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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: |

.github/workflows/ci-docker-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
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

0 commit comments

Comments
 (0)