mirror of
https://github.com/OpenCTI-Platform/opencti.git
synced 2025-12-22 08:17:08 +00:00
[CI] Fix connector manifest version (#13013)
This commit is contained in:
@@ -344,10 +344,10 @@ jobs:
|
||||
LATEST_SEMANTIC_VERSION=$(git tag --sort=-v:refname | grep -E '^v?[0-9]+\.[0-9]+\.[0-9]+$' | head -n 1)
|
||||
DOCKER_TAGS="-t opencti/platform:${CIRCLE_TAG}"
|
||||
[ "$CIRCLE_TAG" = "$LATEST_SEMANTIC_VERSION" ] && DOCKER_TAGS="$DOCKER_TAGS -t opencti/platform:latest"
|
||||
docker buildx build --platform $BUILDX_PLATFORMS --cache-to=type=local,dest=.cache -f Dockerfile_circleci $DOCKER_TAGS --push .
|
||||
docker buildx build --progress=plain --build-arg TAG_VERSION=${CIRCLE_TAG} --platform $BUILDX_PLATFORMS --cache-to=type=local,dest=.cache -f Dockerfile_circleci $DOCKER_TAGS --push .
|
||||
GHCR_TAGS="-t ghcr.io/opencti-platform/opencti/platform:${CIRCLE_TAG}"
|
||||
[ "$CIRCLE_TAG" = "$LATEST_SEMANTIC_VERSION" ] && GHCR_TAGS="$GHCR_TAGS -t ghcr.io/opencti-platform/opencti/platform:latest"
|
||||
docker buildx build --platform $BUILDX_PLATFORMS --cache-from=type=local,src=.cache -f Dockerfile_circleci $GHCR_TAGS --push .
|
||||
docker buildx build --progress=plain --build-arg TAG_VERSION=${CIRCLE_TAG} --platform $BUILDX_PLATFORMS --cache-from=type=local,src=.cache -f Dockerfile_circleci $GHCR_TAGS --push .
|
||||
no_output_timeout: 30m
|
||||
- slack/notify:
|
||||
event: fail
|
||||
@@ -391,10 +391,10 @@ jobs:
|
||||
LATEST_SEMANTIC_VERSION=$(git tag --sort=-v:refname | grep -E '^v?[0-9]+\.[0-9]+\.[0-9]+$' | head -n 1)
|
||||
DOCKER_TAGS="-t opencti/worker:${CIRCLE_TAG}"
|
||||
[ "$CIRCLE_TAG" = "$LATEST_SEMANTIC_VERSION" ] && DOCKER_TAGS="$DOCKER_TAGS -t opencti/worker:latest"
|
||||
docker buildx build --platform $BUILDX_PLATFORMS $DOCKER_TAGS --push .
|
||||
docker buildx build --progress=plain --platform $BUILDX_PLATFORMS $DOCKER_TAGS --push .
|
||||
GHCR_TAGS="-t ghcr.io/opencti-platform/opencti/worker:${CIRCLE_TAG}"
|
||||
[ "$CIRCLE_TAG" = "$LATEST_SEMANTIC_VERSION" ] && GHCR_TAGS="$GHCR_TAGS -t ghcr.io/opencti-platform/opencti/worker:latest"
|
||||
docker buildx build --platform $BUILDX_PLATFORMS $GHCR_TAGS --push .
|
||||
docker buildx build --progress=plain --platform $BUILDX_PLATFORMS $GHCR_TAGS --push .
|
||||
- slack/notify:
|
||||
event: fail
|
||||
template: basic_fail_1
|
||||
@@ -434,8 +434,8 @@ jobs:
|
||||
working_directory: ~/opencti_docker/opencti-platform
|
||||
name: Build Docker image opencti/platform
|
||||
command: |
|
||||
docker buildx build --platform $BUILDX_PLATFORMS --cache-to=type=local,dest=.cache -f Dockerfile_circleci_fips -t opencti/platform:latest-fips -t opencti/platform:${CIRCLE_TAG}-fips --push .
|
||||
docker buildx build --platform $BUILDX_PLATFORMS --cache-from=type=local,src=.cache -f Dockerfile_circleci_fips -t ghcr.io/opencti-platform/opencti/platform:latest-fips -t ghcr.io/opencti-platform/opencti/platform:${CIRCLE_TAG}-fips --push .
|
||||
docker buildx build --progress=plain --build-arg TAG_VERSION=${CIRCLE_TAG} --platform $BUILDX_PLATFORMS --cache-to=type=local,dest=.cache -f Dockerfile_circleci_fips -t opencti/platform:latest-fips -t opencti/platform:${CIRCLE_TAG}-fips --push .
|
||||
docker buildx build --progress=plain --build-arg TAG_VERSION=${CIRCLE_TAG} --platform $BUILDX_PLATFORMS --cache-from=type=local,src=.cache -f Dockerfile_circleci_fips -t ghcr.io/opencti-platform/opencti/platform:latest-fips -t ghcr.io/opencti-platform/opencti/platform:${CIRCLE_TAG}-fips --push .
|
||||
no_output_timeout: 30m
|
||||
- slack/notify:
|
||||
event: fail
|
||||
@@ -476,8 +476,8 @@ jobs:
|
||||
working_directory: ~/opencti_docker/opencti-worker
|
||||
name: Build Docker image opencti/worker
|
||||
command: |
|
||||
docker buildx build --platform $BUILDX_PLATFORMS --cache-to=type=local,dest=.cache -f Dockerfile_fips -t opencti/worker:latest-fips -t opencti/worker:${CIRCLE_TAG}-fips --push .
|
||||
docker buildx build --platform $BUILDX_PLATFORMS --cache-from=type=local,src=.cache -f Dockerfile_fips -t ghcr.io/opencti-platform/opencti/worker:latest-fips -t ghcr.io/opencti-platform/opencti/worker:${CIRCLE_TAG}-fips --push .
|
||||
docker buildx build --progress=plain --platform $BUILDX_PLATFORMS --cache-to=type=local,dest=.cache -f Dockerfile_fips -t opencti/worker:latest-fips -t opencti/worker:${CIRCLE_TAG}-fips --push .
|
||||
docker buildx build --progress=plain --platform $BUILDX_PLATFORMS --cache-from=type=local,src=.cache -f Dockerfile_fips -t ghcr.io/opencti-platform/opencti/worker:latest-fips -t ghcr.io/opencti-platform/opencti/worker:${CIRCLE_TAG}-fips --push .
|
||||
- slack/notify:
|
||||
event: fail
|
||||
template: basic_fail_1
|
||||
@@ -520,8 +520,8 @@ jobs:
|
||||
working_directory: ~/opencti_docker/opencti-platform
|
||||
name: Build Docker image opencti/platform
|
||||
command: |
|
||||
docker buildx build --platform $BUILDX_PLATFORMS --cache-to=type=local,dest=.cache -f Dockerfile_circleci -t opencti/platform:rolling --push .
|
||||
docker buildx build --platform $BUILDX_PLATFORMS --cache-from=type=local,src=.cache -f Dockerfile_circleci -t ghcr.io/opencti-platform/opencti/platform:rolling --push .
|
||||
docker buildx build --progress=plain --platform $BUILDX_PLATFORMS --cache-to=type=local,dest=.cache -f Dockerfile_circleci -t opencti/platform:rolling --push .
|
||||
docker buildx build --progress=plain --platform $BUILDX_PLATFORMS --cache-from=type=local,src=.cache -f Dockerfile_circleci -t ghcr.io/opencti-platform/opencti/platform:rolling --push .
|
||||
no_output_timeout: 30m
|
||||
- slack/notify:
|
||||
event: fail
|
||||
@@ -565,8 +565,8 @@ jobs:
|
||||
working_directory: ~/opencti_docker/opencti-worker
|
||||
name: Build Docker image opencti/worker
|
||||
command: |
|
||||
docker buildx build --platform $BUILDX_PLATFORMS --cache-to=type=local,dest=.cache -t opencti/worker:rolling --push .
|
||||
docker buildx build --platform $BUILDX_PLATFORMS --cache-from=type=local,src=.cache -t ghcr.io/opencti-platform/opencti/worker:rolling --push .
|
||||
docker buildx build --progress=plain --platform $BUILDX_PLATFORMS --cache-to=type=local,dest=.cache -t opencti/worker:rolling --push .
|
||||
docker buildx build --progress=plain --platform $BUILDX_PLATFORMS --cache-from=type=local,src=.cache -t ghcr.io/opencti-platform/opencti/worker:rolling --push .
|
||||
- slack/notify:
|
||||
event: fail
|
||||
template: basic_fail_1
|
||||
@@ -609,8 +609,8 @@ jobs:
|
||||
working_directory: ~/opencti_docker/opencti-platform
|
||||
name: Build Docker image opencti/platform
|
||||
command: |
|
||||
docker buildx build --platform $BUILDX_PLATFORMS --cache-to=type=local,dest=.cache -f Dockerfile_circleci -t opencti/platform:prerelease --push .
|
||||
docker buildx build --platform $BUILDX_PLATFORMS --cache-from=type=local,src=.cache -f Dockerfile_circleci -t ghcr.io/opencti-platform/opencti/platform:prerelease --push .
|
||||
docker buildx build --progress=plain --platform $BUILDX_PLATFORMS --cache-to=type=local,dest=.cache -f Dockerfile_circleci -t opencti/platform:prerelease --push .
|
||||
docker buildx build --progress=plain --platform $BUILDX_PLATFORMS --cache-from=type=local,src=.cache -f Dockerfile_circleci -t ghcr.io/opencti-platform/opencti/platform:prerelease --push .
|
||||
no_output_timeout: 30m
|
||||
- slack/notify:
|
||||
event: fail
|
||||
@@ -654,8 +654,8 @@ jobs:
|
||||
working_directory: ~/opencti_docker/opencti-worker
|
||||
name: Build Docker image opencti/worker
|
||||
command: |
|
||||
docker buildx build --platform $BUILDX_PLATFORMS --cache-to=type=local,dest=.cache -t opencti/worker:prerelease --push .
|
||||
docker buildx build --platform $BUILDX_PLATFORMS --cache-from=type=local,src=.cache -t ghcr.io/opencti-platform/opencti/worker:prerelease --push .
|
||||
docker buildx build --progress=plain --platform $BUILDX_PLATFORMS --cache-to=type=local,dest=.cache -t opencti/worker:prerelease --push .
|
||||
docker buildx build --progress=plain --platform $BUILDX_PLATFORMS --cache-from=type=local,src=.cache -t ghcr.io/opencti-platform/opencti/worker:prerelease --push .
|
||||
- slack/notify:
|
||||
event: fail
|
||||
template: basic_fail_1
|
||||
@@ -698,8 +698,8 @@ jobs:
|
||||
working_directory: ~/opencti_docker/opencti-platform
|
||||
name: Build Docker image opencti/platform
|
||||
command: |
|
||||
docker buildx build --platform $BUILDX_PLATFORMS --cache-to=type=local,dest=.cache -f Dockerfile_circleci_fips -t opencti/platform:rolling-fips --push .
|
||||
docker buildx build --platform $BUILDX_PLATFORMS --cache-from=type=local,src=.cache -f Dockerfile_circleci_fips -t ghcr.io/opencti-platform/opencti/platform:rolling-fips --push .
|
||||
docker buildx build --progress=plain --platform $BUILDX_PLATFORMS --cache-to=type=local,dest=.cache -f Dockerfile_circleci_fips -t opencti/platform:rolling-fips --push .
|
||||
docker buildx build --progress=plain --platform $BUILDX_PLATFORMS --cache-from=type=local,src=.cache -f Dockerfile_circleci_fips -t ghcr.io/opencti-platform/opencti/platform:rolling-fips --push .
|
||||
no_output_timeout: 30m
|
||||
- slack/notify:
|
||||
event: fail
|
||||
@@ -743,8 +743,8 @@ jobs:
|
||||
working_directory: ~/opencti_docker/opencti-worker
|
||||
name: Build Docker image opencti/worker
|
||||
command: |
|
||||
docker buildx build --platform $BUILDX_PLATFORMS --cache-to=type=local,dest=.cache -f Dockerfile_fips -t opencti/worker:rolling-fips --push .
|
||||
docker buildx build --platform $BUILDX_PLATFORMS --cache-from=type=local,src=.cache -f Dockerfile_fips -t ghcr.io/opencti-platform/opencti/worker:rolling-fips --push .
|
||||
docker buildx build --progress=plain --platform $BUILDX_PLATFORMS --cache-to=type=local,dest=.cache -f Dockerfile_fips -t opencti/worker:rolling-fips --push .
|
||||
docker buildx build --progress=plain --platform $BUILDX_PLATFORMS --cache-from=type=local,src=.cache -f Dockerfile_fips -t ghcr.io/opencti-platform/opencti/worker:rolling-fips --push .
|
||||
- slack/notify:
|
||||
event: fail
|
||||
template: basic_fail_1
|
||||
|
||||
@@ -3,6 +3,9 @@ FROM node:22-alpine AS base
|
||||
|
||||
FROM base AS graphql-deps-builder
|
||||
|
||||
ARG TAG_VERSION
|
||||
ENV TAG_VERSION=${TAG_VERSION}
|
||||
|
||||
WORKDIR /opt/opencti-build/opencti-graphql
|
||||
COPY opencti-graphql/package.json opencti-graphql/yarn.lock ../.yarnrc.yml ./
|
||||
COPY opencti-graphql/patch ./patch
|
||||
@@ -17,6 +20,9 @@ RUN set -ex; \
|
||||
|
||||
FROM base AS graphql-builder
|
||||
|
||||
ARG TAG_VERSION
|
||||
ENV TAG_VERSION=${TAG_VERSION}
|
||||
|
||||
WORKDIR /opt/opencti-build/opencti-graphql
|
||||
COPY opencti-graphql/package.json opencti-graphql/yarn.lock ../.yarnrc.yml ./
|
||||
COPY opencti-graphql/patch ./patch
|
||||
|
||||
@@ -2,6 +2,9 @@ FROM filigran/python-nodejs-fips:latest AS base
|
||||
|
||||
FROM base AS graphql-deps-builder
|
||||
|
||||
ARG TAG_VERSION
|
||||
ENV TAG_VERSION=${TAG_VERSION}
|
||||
|
||||
WORKDIR /opt/opencti-build/opencti-graphql
|
||||
COPY opencti-graphql/package.json opencti-graphql/yarn.lock ../.yarnrc.yml ./
|
||||
COPY opencti-graphql/patch ./patch
|
||||
@@ -14,6 +17,9 @@ RUN set -ex; \
|
||||
|
||||
FROM base AS graphql-builder
|
||||
|
||||
ARG TAG_VERSION
|
||||
ENV TAG_VERSION=${TAG_VERSION}
|
||||
|
||||
WORKDIR /opt/opencti-build/opencti-graphql
|
||||
COPY opencti-graphql/package.json opencti-graphql/yarn.lock ../.yarnrc.yml ./
|
||||
COPY opencti-graphql/patch ./patch
|
||||
|
||||
Reference in New Issue
Block a user