Skip to content

Commit

Permalink
Add CI and running instructions (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
yahavi authored Jul 12, 2020
1 parent 68365d6 commit 42c1275
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@

JFrog Ecosystem integration environment is a Docker image containing all the tools JFrog CLI integrates with and supports.

## Using the Docker Image

This Docker image can be pulled from `releases.jfrog.io` by running the following command:
````
docker pull releases-docker.jfrog.io/jfrog-ecosystem-integration-env:<tag>
````
Running the docker image:
```
docker run -it releases-docker.jfrog.io/jfrog-ecosystem-integration-env
```

## Supported tools

The image is using `apt` and `sdkman` to download the build tools. Note: In the `:latest` tag, the tools versions may change.
Expand Down
39 changes: 39 additions & 0 deletions pipelines.yml
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"

0 comments on commit 42c1275

Please sign in to comment.