{"id":22400136,"url":"https://github.com/scalefreecom/tfautomation_templates","last_synced_at":"2026-02-07T17:05:38.610Z","repository":{"id":190394580,"uuid":"682511385","full_name":"ScalefreeCOM/TFAutomation_templates","owner":"ScalefreeCOM","description":null,"archived":false,"fork":false,"pushed_at":"2024-10-29T10:46:20.000Z","size":207,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-29T12:44:07.805Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ScalefreeCOM.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-08-24T10:29:12.000Z","updated_at":"2024-10-29T10:46:24.000Z","dependencies_parsed_at":"2023-12-07T10:34:43.504Z","dependency_job_id":"bcb4efc0-0c9e-4ecb-8408-88dd13bc87de","html_url":"https://github.com/ScalefreeCOM/TFAutomation_templates","commit_stats":null,"previous_names":["scalefreecom/tfautomation_templates"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScalefreeCOM%2FTFAutomation_templates","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScalefreeCOM%2FTFAutomation_templates/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScalefreeCOM%2FTFAutomation_templates/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScalefreeCOM%2FTFAutomation_templates/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ScalefreeCOM","download_url":"https://codeload.github.com/ScalefreeCOM/TFAutomation_templates/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245755683,"owners_count":20667027,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-05T08:11:31.673Z","updated_at":"2026-02-07T17:05:38.520Z","avatar_url":"https://github.com/ScalefreeCOM.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# TFAutomation_templates\r\n\r\nFind the detailed documentation for reusable workflows [here](https://wiki.scalefree.net/it/devops/reusable-workflows).\r\n\r\n### Usage\r\n\r\nCreate a file in the path .github/workflows, example down below.\r\n\r\n```yaml\r\n\r\nname: 'Build'\r\n\r\non:\r\n  workflow_dispatch:\r\n  pull_request:\r\n    types: [opened, synchronize]\r\n    branches:\r\n      - main\r\n      \r\njobs:\r\n  call-workflow:\r\n    strategy:\r\n      matrix:\r\n        target: [./, ./common, ./network]\r\n    uses: ScalefreeCOM/TFAutomation_templates/.github/workflows/terraform-build.yml@main\r\n    with:\r\n      region: eu-west-3\r\n      tf_version: \"1.5.4\"\r\n      working_directory: ${{ matrix.target }}\r\n    secrets: inherit\r\n    permissions:\r\n      contents: read\r\n\r\n```\r\n\r\n\u003e [!NOTE]\r\n\u003e **on**: when workflow is triggered \u003c/br\u003e\r\n\u003e **uses**: path to reusable workflow \u003c/br\u003e\r\n\u003e **with**: inputs for reusable workflow\r\n\r\nIf you have multiple directories use the matrix strategy:\r\n\r\n```yaml\r\n    strategy:\r\n      matrix:\r\n        target: [./, ./common, ./network]\r\n```\r\n\r\nreplace your directories with those in the example.\r\n\r\n### Inputs for different templates:\r\n\r\n\u003cdetails\u003e\r\n  \u003csummary\u003eterraform-build.yml\u003c/summary\u003e\r\n\r\n  [Example](https://github.com/ScalefreeCOM/TFAutomation_templates/blob/main/examples/terraform-build.yml)\r\n  \r\n  | input name | default       | required | \r\n  |------------|---------------|----------|\r\n  | runs-on    | ubuntu-latest | no       |  \r\n  | region     | eu-west-1     | no       | \r\n  | cloud_provider     | aws     | specific for provider     | \r\n  | tf_version   | -             | yes      |  \r\n  | working_directory  | -        | yes       |\r\n\r\n  | secrets | requires |\r\n  |---------|----------|\r\n  | TFAUTOMATION_AWS_ACCESS_KEY\t| yes |\r\n  | TFAUTOMATION_AWS_SECRET_ACCESS_KEY | yes |\r\n  \r\n\u003c/details\u003e\r\n\r\n\u003cdetails\u003e\r\n  \u003csummary\u003eterraform-deploy.yml\u003c/summary\u003e\r\n\r\n  [Example](https://github.com/ScalefreeCOM/TFAutomation_templates/blob/main/examples/terraform-deploy.yml)\r\n\r\n  | input name | default       | required | \r\n  |------------|---------------|----------|\r\n  | runs-on    | ubuntu-latest | no       |  \r\n  | region     | eu-west-1     | no       |\r\n  | cloud_provider     | aws     | specific for provider     | \r\n  | tf_version   | -             | yes      |  \r\n  | working_directory  | -        | yes       |\r\n  | approvers     | -     | yes       | \r\n  | minimum-approvals     | 2     | no       | \r\n  | issue-title     | Deploying     | no       | \r\n  | issue-body     | Please approve or deny the deployment     | no       |  \r\n  \r\n  | secrets | requires |\r\n  |---------|----------|\r\n  | TFAUTOMATION_AWS_ACCESS_KEY\t| yes |\r\n  | TFAUTOMATION_AWS_SECRET_ACCESS_KEY | yes |\r\n  \r\n\u003c/details\u003e\r\n\r\n\u003cdetails\u003e\r\n  \u003csummary\u003edocker-image-build-push.yml\u003c/summary\u003e\r\n\r\n  [Example](https://github.com/ScalefreeCOM/TFAutomation_templates/blob/main/examples/build-push-image.yml)\r\n\r\n  | input name | default       | required | \r\n  |------------|---------------|----------|\r\n  | runs-on    | ubuntu-latest | no       |  \r\n  | region     | eu-west-1     | no       |  \r\n  | ecr-repo   | -             | yes      |  \r\n  | image_tag  | latest        | no       |\r\n  \r\n  | secrets | requires |\r\n  |---------|----------|\r\n  | TFAUTOMATION_AWS_ACCESS_KEY\t| yes |\r\n  | TFAUTOMATION_AWS_SECRET_ACCESS_KEY | yes |\r\n  \r\n\u003c/details\u003e\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscalefreecom%2Ftfautomation_templates","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscalefreecom%2Ftfautomation_templates","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscalefreecom%2Ftfautomation_templates/lists"}