Skip to content

Merge pull request #109 from ministryofjustice/repo-vars-condition #4

Merge pull request #109 from ministryofjustice/repo-vars-condition

Merge pull request #109 from ministryofjustice/repo-vars-condition #4

on:
push:
tags:
- '*'
jobs:
push-terraform-module-version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ministryofjustice/cloud-platform-environments/cmd/push-terraform-module-version@main
env:
# see https://github.com/ministryofjustice/cloud-platform-go-get-module/
# get the address from the ingress eg. 'https://' + `kubectl get ing -n cloud-platform-go-get-module-$ENV`
API_URL: ${{ vars.TERRAFORM_MODULE_VERSIONS_API_URL }}
# get this via the cli eg. `cloud-platform decode-secret -n cloud-platform-go-get-module-prod -s go-get-module-api-key`
API_KEY: ${{ secrets.TERRAFORM_MODULE_VERSIONS_API_KEY }}
REPO_NAME: ${{ github.event.repository.name }}
UPDATED_MODULE_VERSION: ${{ github.ref_name }}