Skip to content

Commit

Permalink
[ci] add ghcr push
Browse files Browse the repository at this point in the history
  • Loading branch information
helene-nguyen committed Jan 30, 2025
1 parent 64fd509 commit 735d52e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .circleci/templates/dynamic.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
docker buildx create --use --name builder-connector-{{sub_dir}}
docker buildx inspect builder-connector-{{sub_dir}} --bootstrap
echo "$DOCKERHUB_PASS" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin
echo "$GHCR_PASS" | docker login ghcr.io -u "$GHCR_USERNAME" --password-stdin
{% set image_key = top_dir ~ '_' ~ sub_dir -%}

{% if param['images'][image_key] is defined -%}
Expand All @@ -37,6 +38,7 @@ jobs:
docker buildx build . \
{% for tag in tags -%}
--tag {{repo}}/connector-{{sub_dir}}:{{tag}} \
--tag ghcr.io/opencti-platform/{{repo}}/connector-{{sub_dir}}:{{tag}} \
{% endfor -%}
--build-arg BASE_IMAGE=$base_image \
--load
Expand All @@ -45,6 +47,7 @@ jobs:
docker buildx build -f Dockerfile_fips . \
{% for tag in tags -%}
--tag {{repo}}/connector-{{sub_dir}}:{{tag}}-fips \
--tag ghcr.io/opencti-platform/{{repo}}/connector-{{sub_dir}}:{{tag}}-fips \
{% endfor -%}
--build-arg BASE_IMAGE=$base_image \
--load
Expand Down

0 comments on commit 735d52e

Please sign in to comment.