Skip to content

alvin-huang/consul-kv-github-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

consul-kv-github-action

GitHub Action to lookup a key in Consul KV and set its value as an environment variable.

Inputs

url

Required The URL to the Consul HTTP Agent

key

Required The key to look up in Consul KV

Example workflow

on: [push]

jobs:
  consul_kv_job:
    runs-on: ubuntu-latest
    name: A job to test getting a value from Consul KV
    steps:
      - name: Checkout
        uses: actions/checkout@v2
      - name: get value from Consul KV
        id: get
        uses: alvin-huang/consul-kv-github-action@v1
        with:
          url: demo.consul.io
          key: mykey
      # Use the environment variable set by the key
      - name: prints the value of the key
        run: echo "The value from Consul is ${{ env.mykey }}"

About

GitHub Action to pull a value from Consul KV

Resources

License

Stars

Watchers

Forks

Packages

No packages published