Skip to content

GitHub Action for automating HCP Packer releases

License

Notifications You must be signed in to change notification settings

ehassett/hcp-packer-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

HCP Packer Action

GitHub Action for automating HCP Packer releases. Points the specified Channel the most recent Iteration of the specified Bucket.

Table of Contents

Usage

Add the Action to your GitHub Workflow configuration:

name: HCP Packer
on:
  push:

jobs:
  hcp-packer:
    name: hcp-packer
    runs-on: ubuntu-latest
    env:
      HCP_CLIENT_ID: ${{ secrets.HCP_CLIENT_ID }}
      HCP_CLIENT_SECRET: ${{ secrets.HCP_CLIENT_SECRET }}
      HCP_ORGANIZATION_ID: ${{ secrets.HCP_ORGANIZATION_ID }}
      HCP_PROJECT_ID: ${{ secrets.HCP_PROJECT_ID }}

    steps:
      - name: release
        uses: ehassett/hcp-packer-action@main
        with:
          channel: foo
          bucket: bar

Inputs

Name Description Required Default
channel release channel to point to most recent iteration yes
bucket HCP Packer bucket to work with yes

This Action also relies on the following environment variables:

  • HCP_CLIENT_ID
  • HCP_CLIENT_SECRET
  • HCP_ORGANIZATION_ID
  • HCP_PROJECT_ID See more information about HCP Service Principals.

Author

This module is maintained by Ethan Hassett and the contributors listed on GitHub.

License

Licensed under the MIT License.