GithubHelp home page GithubHelp logo

sinchang-codespaces / jfrog-artifactory-badge Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jimthedev/jfrog-artifactory-badge

0.0 0.0 0.0 27 KB

A tiny http based microservice that serves up shields.io image badges for given private jfrog artifactory repositories.

License: MIT License

JavaScript 100.00%

jfrog-artifactory-badge's Introduction

jfrog-artifactory-badge

A tiny http based microservice that serves up https://shields.io image badges for given private jfrog artifactory repositories.

Getting started

  • Node 8+
  • Copy/rename .env.example file to .env and fill out the details for your artifactory setup
  • npm install
  • npm start

Example .env file

You should probably replace servername twice with your jfrog url and may also need to replace the second npm in the path if you didn't call your npm repository 'npm'. The provided user will need read access to the packages that you want to generate badges for.

ARTIFACTORY_BADGE_URI=https://servername.jfrog.io/servername/api/npm/npm/
ARTIFACTORY_BADGE_USERNAME=my_jfrog_artifactory_user
ARTIFACTORY_BADGE_PASSWORD=My_jFr0g_4rtifactory_P@ssword!

Deployment

Deployment to zeit's now.sh is pretty easy so it is described here. You may deploy to hosting of your choosing.

# Read your .env file and puts those secrets into now.sh, deploys 
# and gives you a https://GENERIC-NOW-URL.now.sh on your clipboard
now --dotenv

# scale it so it doesn't sleep, using the URL they give you
now scale https://GENERIC-NOW-URL.now.sh 1

# If you have a paid account, you can alias to a custom url
now alias http://GENERIC-NOW-URL.now.sh https://mydomain.com

# Now you can use an html img tag
<img src="https://mydomain.com/@scope/package" alt="package version">

# or markdown image
![package version](https://mydomain.com/@scope/package)

Author

2018, jimthedev MIT License, have fun.

jfrog-artifactory-badge's People

Contributors

jimthedev avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.