-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CI and running instructions (#2)
- Loading branch information
Showing
2 changed files
with
50 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
resources: | ||
- name: integrationEnvGit | ||
type: GitRepo | ||
configuration: | ||
path: jfrog/jfrog-ecosystem-integration-env | ||
gitProvider: github | ||
buildOn: | ||
# Build on commit and tags | ||
tagCreate: true | ||
branches: | ||
# Only build on the master | ||
include: master | ||
|
||
pipelines: | ||
- name: build_integration_env | ||
steps: | ||
- name: BuildAndPush | ||
type: Bash | ||
configuration: | ||
integrations: | ||
- name: releases_jfrog | ||
inputResources: | ||
- name: integrationEnvGit | ||
environmentVariables: | ||
JFROG_CLI_OFFER_CONFIG: "false" | ||
# The image tag is the Git tag if exist or 'latest' | ||
IMAGE_NAME: releases-reg2.jfrog.io/jfrog-ecosystem-integration-env:${res_integrationEnvGit_gitTagName:-latest} | ||
execution: | ||
onStart: | ||
- update_commit_status integrationEnvGit --context "$step_name" | ||
onExecute: | ||
- echo "Building docker image $IMAGE_NAME" | ||
# Build docker image | ||
- docker build $res_integrationEnvGit_resourcePath -t $IMAGE_NAME | ||
# Push docker image | ||
- curl -fL https://getcli.jfrog.io | sh | ||
- ./jfrog rt docker-push $IMAGE_NAME reg2 --url=https://releases.jfrog.io/artifactory --access-token=$int_releases_jfrog_token | ||
onComplete: | ||
- update_commit_status integrationEnvGit --context "$step_name" |