Skip to content

Commit

Permalink
Add gh action to push new terraform module releases to our API (#26)
Browse files Browse the repository at this point in the history
* add new github action on new release

* fix: 🐛 example/ versions inconsistent
  • Loading branch information
jaskaransarkaria authored Feb 10, 2023
1 parent 4200237 commit 8ff5608
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions .github/workflows/push-terraform-module-version.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
on:
push:
tags:
- '*'

jobs:
push-terraform-module-version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ministryofjustice/cloud-platform-environments/cmd/push-terraform-module-version@main
env:
API_URL: ${{ vars.TERRAFORM_MODULE_VERSIONS_API_URL }}
API_KEY: ${{ secrets.TERRAFORM_MODULE_VERSIONS_API_KEY }}
REPO_NAME: ${{ github.event.repository.name }}
UPDATED_MODULE_VERSION: ${{ github.ref_name }}
2 changes: 1 addition & 1 deletion examples/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ terraform {
}
kubernetes = {
source = "hashicorp/kubernetes"
version = "~> 2.9.0"
version = "~> 2.12.1"
}
}
required_version = ">= 0.14"
Expand Down

0 comments on commit 8ff5608

Please sign in to comment.