shared-actions/terraform-module-publish
2026-04-24 15:57:40 +02:00
..
action.yml refactor: move action to repo root 2026-04-24 15:57:40 +02:00
README.md refactor: move action to repo root 2026-04-24 15:57:40 +02:00

terraform-module-publish

Zip a Terraform module and publish to JFrog Artifactory.

Inputs

Input Required Default Description
module-dir Yes Path to the module directory to zip
module-name Yes Module name (used in zip filename and upload path)
version Yes Version string (from git tag)
jfrog-token Yes JFrog access token
jfrog-url No https://schmalz.jfrog.io/artifactory/terraform/schmalz JFrog Artifactory base URL

Usage

- uses: schmalz/shared-actions/.github/actions/terraform-module-publish@v1
  with:
    module-dir: modules/vpc
    module-name: vpc
    version: ${{ github.ref_name }}
    jfrog-token: ${{ secrets.JFROG_TOKEN }}

Notes

  • The module directory contents are zipped and uploaded to <jfrog-url>/<module-name>/<version>.zip.
  • Uses curl with bearer token authentication.