-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: oumkale <[email protected]>
- Loading branch information
Showing
14 changed files
with
125 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
PROJECT_ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && cd ../.. && pwd)" | ||
pushd "${PROJECT_ROOT_DIR}" | ||
|
||
# Use the jfdev-ci-commons as a library in the services. | ||
# This script downloads the jfdev-ci-commons npm package and extract the files inside it to the destination folder: build/ci/scripts/ | ||
# The service will use the ci code locally. | ||
# In the service add in every step: | ||
# onStart: | ||
# - source "${res_<service>_bitbucket_resourcePath}/build/ci/pipelines_step_setup.sh" | ||
# | ||
|
||
|
||
JFDEV_CI_COMMONS_DEFAULT_VERSION="1.*" | ||
|
||
if [[ -z "${JFDEV_CI_COMMONS_VERSION}" ]]; then | ||
# Download latest release version (without milestone + dev versions) based on regex in 'JFDEV_CI_COMMONS_DEFAULT_VERSION' | ||
# Command breakdown: | ||
# jq -c '.[].props["npm.version"]' -> Return the value under [props][npm.version] | ||
# egrep -v -e "-m" -e "-dev" -> Remove the result with -m and -dev so in this case "1.2.0-dev" and "1.8.0-m016" will be removed | ||
# sort --version-sort -> Return asc sorted data for all version numeric-wise | ||
# tail -1 -> Return the last output print line since its already sorted | ||
|
||
JFDEV_CI_COMMONS_VERSION=$(jfrog rt search "npm-releases-local/jfdev-ci-commons/-/jfdev-ci-commons-${JFDEV_CI_COMMONS_DEFAULT_VERSION}.tgz" | jq -cr '.[].props["npm.version"][]' | egrep -v -e "-m" -e "-dev" | sort --version-sort | tail -1) | ||
echo "Found JFdev ci commons latest: ${JFDEV_CI_COMMONS_VERSION} " | ||
jfrog rt dl --explode "npm-releases-local/jfdev-ci-commons/-/jfdev-ci-commons-${JFDEV_CI_COMMONS_VERSION}.tgz" | ||
else | ||
# Download specific version user asked for in env var 'JFDEV_CI_COMMONS_VERSION' - could be release/milestone/dev | ||
jfrog rt dl --explode "*/jfdev-ci-commons/-/jfdev-ci-commons-${JFDEV_CI_COMMONS_VERSION}.tgz" | ||
fi | ||
|
||
CI_SCRIPTS_FOLDER="${PROJECT_ROOT_DIR}/.jfrog-pipelines/build/ci/scripts" | ||
echo "${CI_SCRIPTS_FOLDER}" | ||
if [ -d "${CI_SCRIPTS_FOLDER}" ]; then | ||
echo "${CI_SCRIPTS_FOLDER} exists" | ||
# Directory ${CI_SCRIPTS_FOLDER} exists | ||
if [ "$(ls -A ${CI_SCRIPTS_FOLDER})" ]; then | ||
# Soon this folder will be removed from artifactory to jfdev-ci-commons repository. | ||
# After the remove this warning will become an error | ||
echo "[WARN] ${CI_SCRIPTS_FOLDER} is not empty" | ||
rm -rf "${CI_SCRIPTS_FOLDER}/*" | ||
fi | ||
fi | ||
|
||
mkdir -p "${CI_SCRIPTS_FOLDER}"; cp -Rf jfdev-ci-commons/-/package/* "${CI_SCRIPTS_FOLDER}/" | ||
|
||
source "${CI_SCRIPTS_FOLDER}/lib/pipelineStepCommons.sh" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
services: | ||
artifactory_secrets_rotator_operator: | ||
serviceShortName: jfop | ||
property: jfrog.operator.version | ||
group: com.jfrog.operator | ||
artifact: jfrog-registry-operator | ||
helmChartsNames: | ||
- jfrog-registry-operator | ||
goModulesNames: | ||
- artifactory-secrets-rotator | ||
releaseRepository: | ||
helm: helm-releases-local | ||
go: go-releases-local | ||
orderedPaths: | ||
- charts/jfrog-registry-operator | ||
exclude_monorepo: true | ||
jiraProjectKeys: | ||
- INST | ||
bitBucket: | ||
projectKey: JFROG | ||
repoSlug: artifactory | ||
distributeArtifacts: | ||
- type: helm | ||
flavors: | ||
- jfrog-registry-operator | ||
source: | ||
path: "" | ||
name: <FLAVOR>-<VERSION>.tgz | ||
repository: helm-releases-local | ||
target: | ||
path: "" | ||
name: <FLAVOR>-<VERSION>.tgz | ||
repository: jfrog-charts-local |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
export PROJECT_ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && cd ../../.. && pwd)" | ||
source "${PROJECT_ROOT_DIR}/.jfrog-pipelines/build/ci/scripts/runSonarScannerGeneric.sh" | ||
|
||
SONAR_PROJECT_BASE_DIR="${SONAR_PROJECT_BASE_DIR:-}" | ||
|
||
SONAR_INCLUSIONS="${SONAR_INCLUSIONS-**/*.go}" | ||
SONAR_EXCLUSIONS="${SONAR_EXCLUSIONS-**/*_test.go}" | ||
|
||
function on_start() { | ||
return 0 | ||
} | ||
|
||
function on_execute() { | ||
pushd "${PROJECT_ROOT_DIR}/${SONAR_PROJECT_BASE_DIR}" && ls -lsa | ||
sonar_runScan | ||
popd > /dev/null | ||
} | ||
|
||
function on_success() { | ||
return 0 | ||
} | ||
|
||
function on_complete() { | ||
return 0 | ||
} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,5 @@ | ||
# JFrog Secret Rotator Operator Chart Changelog | ||
All changes to this chart will be documented in this file. | ||
|
||
## [0.1.0] - Oct 25, 2023 | ||
* First release of jfrog-registry-operator | ||
|
||
## [0.0.3] - Nov 17, 2023 | ||
* First release of jfrog-registry-operator `0.0.3` | ||
## [1.0.0] - Dec 12, 2023 | ||
* First release of jfrog-registry-operator `1.0.0` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters