-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
68 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
resources: | ||
- name: securityCliGit | ||
type: GitRepo | ||
configuration: | ||
path: jfrog/jfrog-cli-security | ||
branches: | ||
include: dev | ||
gitProvider: il_automation | ||
|
||
pipelines: | ||
- name: release_security_cli | ||
configuration: | ||
runtime: | ||
type: image | ||
image: | ||
custom: | ||
name: releases-docker.jfrog.io/jfrog-ecosystem-integration-env | ||
tag: latest | ||
environmentVariables: | ||
readOnly: | ||
NEXT_VERSION: 0.0.0 | ||
|
||
steps: | ||
- name: Release | ||
type: Bash | ||
configuration: | ||
inputResources: | ||
- name: securityCliGit | ||
trigger: false | ||
integrations: | ||
- name: il_automation | ||
- name: ecosys_entplus_deployer | ||
execution: | ||
onExecute: | ||
- cd $res_securityCliGit_resourcePath | ||
|
||
# Set env | ||
- export CI=true | ||
|
||
# Make sure version provided | ||
- echo "Checking variables" | ||
- test -n "$NEXT_VERSION" -a "$NEXT_VERSION" != "0.0.0" | ||
|
||
# Configure Git and merge from the dev | ||
- git checkout main | ||
- git remote set-url origin https://[email protected]/jfrog/jfrog-cli-security.git | ||
- git merge origin/dev | ||
- git tag v${NEXT_VERSION} | ||
|
||
# Download JFrog CLI | ||
- curl -fL https://install-cli.jfrog.io | sh | ||
- jf c rm --quiet | ||
- jf c add internal --url=$int_ecosys_entplus_deployer_url --user=$int_ecosys_entplus_deployer_user --password=$int_ecosys_entplus_deployer_apikey | ||
|
||
# Audit | ||
- jf audit --fail=false | ||
|
||
# Push to main | ||
- git clean -fd | ||
- git push | ||
- git push --tags | ||
|
||
# Merge changes to dev | ||
- git checkout dev | ||
- git merge origin/main | ||
- git push | ||
onComplete: | ||
- jf c rm --quiet |
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