Skip to content

Commit

Permalink
Merge branch 'feature/PB-36641_52-Publish-production-API' into 'master'
Browse files Browse the repository at this point in the history
PB-36641 Merge release into master (v4.10.0)

See merge request passbolt/passbolt-ce-api!313
  • Loading branch information
cedricalfonsi committed Nov 20, 2024
2 parents 57e2150 + ed57c85 commit a3dacc0
Show file tree
Hide file tree
Showing 481 changed files with 39,815 additions and 3,790 deletions.
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ indent_size = 2
[*.json]
indent_size = 2

[composer.json]
indent_size = 4

[*.yml]
indent_size = 2

Expand Down
2 changes: 0 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,11 @@ stages:

include:
- template: Code-Quality.gitlab-ci.yml
# - local: "/.gitlab-ci/jobs/php_unit_tests/runner.yml"
- local: "/.gitlab-ci/jobs/php_unit_tests/sequential/php_unit_tests.yml"
- local: "/.gitlab-ci/jobs/style_check.yml"
- local: "/.gitlab-ci/jobs/security_check.yml"
- local: ".gitlab-ci/jobs/packaging_trigger/package_trigger.yml"
- local: ".gitlab-ci/jobs/release.yml"
- local: ".gitlab-ci/jobs/help_site_notes.yml"

code_quality:
image: ${CI_DEPENDENCY_PROXY_DIRECT_GROUP_IMAGE_PREFIX}/docker:20.10.12-dind
Expand Down
21 changes: 0 additions & 21 deletions .gitlab-ci/jobs/help_site_notes.yml

This file was deleted.

27 changes: 22 additions & 5 deletions .gitlab-ci/jobs/packaging_trigger/package_trigger.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,29 @@
tag-cleaner:
stage: packaging-trigger
script:
- |
source .gitlab-ci/scripts/lib/tag-cleaner.sh $CI_COMMIT_TAG
echo "PB_VERSION=$PB_VERSION" >> tag.env
rules:
- if: $CI_COMMIT_TAG
when: on_success
artifacts:
reports:
dotenv: tag.env

packaging-trigger:
stage: packaging-trigger
variables:
PACKAGING_TRIGGER_BRANCH: "main"
DOWNSTREAM_PROJECT_ID: "$PACKAGING_PROJECT_ID"
image: ${CI_DEPENDENCY_PROXY_DIRECT_GROUP_IMAGE_PREFIX}/debian:bookworm-slim
script:
- apt update && apt install -y curl
- bash .gitlab-ci/scripts/bin/packaging-trigger.sh "$CI_COMMIT_TAG" "$PACKAGING_TRIGGER_BRANCH"
PASSBOLT_FLAVOUR: $PASSBOLT_FLAVOUR
PASSBOLT_VERSION: $PB_VERSION
PASSBOLT_BRANCH: $CI_COMMIT_TAG
trigger:
project: passbolt/passbolt-ops/passbolt-packaging
branch: $PACKAGING_TRIGGER_BRANCH
rules:
- if: $CI_COMMIT_TAG
when: on_success
needs:
- job: tag-cleaner
artifacts: true
60 changes: 0 additions & 60 deletions .gitlab-ci/scripts/bin/help_site.sh

This file was deleted.

33 changes: 0 additions & 33 deletions .gitlab-ci/scripts/bin/set-env.sh

This file was deleted.

33 changes: 0 additions & 33 deletions .gitlab-ci/scripts/bin/slack-status-messages.sh

This file was deleted.

29 changes: 0 additions & 29 deletions .gitlab-ci/scripts/lib/git-helpers.sh

This file was deleted.

46 changes: 0 additions & 46 deletions .gitlab-ci/scripts/lib/set-env.sh

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@

#!/bin/bash

# This script receives an passbolt tag and returns the passbolt version semver compliant (without 'v')
# It can handle stable versions eg. v3.11.0 -> 3.11.0
# and release candiate versions eg. v3.11.0-rc.1 -> 3.11.0-rc.1

tag="$1"
branch="$2"

function is_release_candidate () {
local version=$1
Expand Down Expand Up @@ -57,13 +57,4 @@ fi
echo "Creating the following variables"
echo "================================="
echo "PASSBOLT_VERSION=${version}"

passbolt_version="${version}"

curl -X POST \
-F token="$PACKAGING_TOKEN" \
-F "ref=$branch" \
-F "variables[PASSBOLT_FLAVOUR]=$PASSBOLT_FLAVOUR" \
-F "variables[PASSBOLT_VERSION]=$passbolt_version" \
-F "variables[PASSBOLT_BRANCH]=$tag" \
"https://gitlab.com/api/v4/projects/$DOWNSTREAM_PROJECT_ID/trigger/pipeline"
export PB_VERSION=${version}
42 changes: 0 additions & 42 deletions .gitlab-ci/scripts/lib/version-check.sh

This file was deleted.

Loading

0 comments on commit a3dacc0

Please sign in to comment.