{"id":5919648,"name":"dmsi-io/gha-env-variables","ecosystem":"actions","description":"Exports set list of environment variables to GITHUB_ENV with sensible defaults.","homepage":"","licenses":null,"normalized_licenses":[],"repository_url":"https://github.com/dmsi-io/gha-env-variables","keywords_array":["action","github-actions"],"namespace":"dmsi-io","versions_count":10,"first_release_published_at":"2021-12-06T17:06:32.000Z","latest_release_published_at":"2022-10-25T16:28:21.000Z","latest_release_number":"v1.3.2","latest_published_release_number":null,"last_synced_at":"2026-02-15T22:40:22.265Z","created_at":"2023-01-22T00:01:56.510Z","updated_at":"2026-09-21T00:54:03.137Z","registry_url":"https://github.com/dmsi-io/gha-env-variables","install_command":null,"documentation_url":null,"metadata":{"name":"Setup Environment Variables","description":"Exports set list of environment variables to GITHUB_ENV with sensible defaults.","inputs":{"GCP_PROJECT_ID":{"description":"ProjectID of the GCP project to deploy to.","required":true},"REGISTRY_HOSTNAME":{"description":"Hostname of Container Registry","default":"gcr.io","required":false},"TLD":{"description":"Top Level Domain to create subdomain on.","required":true},"NAMESPACE":{"description":"Allows to override the desired NAMESPACE variable","required":false},"SERVICE_NAME":{"description":"Allows to override the desired SERVICE_NAME variable","required":false,"default":"${{ github.repository }}"}},"outputs":{"short_sha":{"description":"Short SHA","value":"${{ steps.SHORT_SHA.outputs.short_sha }}"},"env":{"description":"Kubernetes Environment","value":"${{ steps.ENV.outputs.env }}"},"namespace":{"description":"Kubernetes Namespace","value":"${{ steps.NAMESPACE.outputs.namespace }}"},"service_name":{"description":"Kubernetes Service Name","value":"${{ steps.SERVICE_NAME.outputs.service_name }}"},"build_image":{"description":"Docker Build Image","value":"${{ steps.BUILD_IMAGE.outputs.BUILD_IMAGE }}"},"hostname":{"description":"Hostname","value":"${{ steps.HOSTNAME.outputs.hostname }}"},"cert_name":{"description":"TLS Certificate Name","value":"${{ steps.CERT_NAME.outputs.cert_name }}"}},"runs":{"using":"composite","steps":[{"name":"SHORT_SHA","id":"SHORT_SHA","run":"SHORT_SHA=${GITHUB_SHA:0:7}\necho \"SHORT_SHA=$SHORT_SHA\"\necho \"SHORT_SHA=$SHORT_SHA\" \u003e\u003e $GITHUB_ENV\necho \"short_sha=$SHORT_SHA\" \u003e\u003e $GITHUB_OUTPUT\n","shell":"bash"},{"name":"Get Ref","id":"get_ref","uses":"dmsi-io/gha-get-ref@v1","with":{"custom_ref":"${{ inputs.NAMESPACE }}"}},{"name":"ENV","id":"ENV","run":"ENV=${{ github.ref_type == 'tag' \u0026\u0026  'production' || 'development'}}\necho \"ENV=$ENV\"\necho \"ENV=$ENV\" \u003e\u003e $GITHUB_ENV\necho \"env=$ENV\" \u003e\u003e $GITHUB_OUTPUT\n","shell":"bash"},{"name":"NAMESPACE","id":"NAMESPACE","run":"NAMESPACE=$(${{ github.action_path }}/clean_variable.sh ${{ steps.get_ref.outputs.ref_name }})\n\necho \"NAMESPACE=$NAMESPACE\"\necho \"NAMESPACE=$NAMESPACE\" \u003e\u003e $GITHUB_ENV\necho \"namespace=$NAMESPACE\" \u003e\u003e $GITHUB_OUTPUT\n","shell":"bash"},{"name":"SERVICE_NAME","id":"SERVICE_NAME","run":"SERVICE_NAME=$(${{ github.action_path }}/clean_variable.sh ${{ inputs.SERVICE_NAME }})\n\necho \"SERVICE_NAME=$SERVICE_NAME\"\necho \"SERVICE_NAME=$SERVICE_NAME\" \u003e\u003e $GITHUB_ENV\necho \"service_name=$SERVICE_NAME\" \u003e\u003e $GITHUB_OUTPUT\n","shell":"bash"},{"name":"Docker Tag","id":"docker_tag","run":"SEMVER_REGEX=\"^(v*0|v*[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)(-((0|[1-9][0-9]*|[0-9]*[a-zA-Z-][0-9a-zA-Z-]*)(\\.(0|[1-9][0-9]*|[0-9]*[a-zA-Z-][0-9a-zA-Z-]*))*))?(\\+([0-9a-zA-Z-]+(\\.[0-9a-zA-Z-]+)*))?$\"\nRELEASE_REGEX=\"release/*\"\nREF=\"${{ steps.get_ref.outputs.ref_name }}\"\n\nif [ \"${{ github.ref_type }}\" = \"tag\" ]; then\n  echo \"tag_name=$REF\" \u003e\u003e $GITHUB_OUTPUT\nelif [[ \"$REF\" =~ $RELEASE_REGEX ]] \u0026\u0026 [[ \"${REF##*/}\" =~ $SEMVER_REGEX ]]; then\n  echo \"tag_name=${REF##*/}\" \u003e\u003e $GITHUB_OUTPUT\nelse\n  echo \"tag_name=$SHORT_SHA\" \u003e\u003e $GITHUB_OUTPUT\nfi\n","shell":"bash"},{"name":"BUILD_IMAGE","id":"BUILD_IMAGE","run":"BUILD_IMAGE=${{ inputs.REGISTRY_HOSTNAME }}/${{ inputs.GCP_PROJECT_ID }}/$SERVICE_NAME:${{ steps.docker_tag.outputs.tag_name }}\n\necho \"BUILD_IMAGE=$BUILD_IMAGE\"\necho \"build_image=$BUILD_IMAGE\" \u003e\u003e $GITHUB_OUTPUT\necho \"BUILD_IMAGE=$BUILD_IMAGE\" \u003e\u003e $GITHUB_ENV\n","shell":"bash"},{"name":"HOSTNAME","id":"HOSTNAME","run":"HOSTNAME=$NAMESPACE.${{ inputs.TLD }}\necho \"HOSTNAME=$HOSTNAME\"\necho \"HOSTNAME=$HOSTNAME\" \u003e\u003e $GITHUB_ENV\necho \"hostname=$HOSTNAME\" \u003e\u003e $GITHUB_OUTPUT\n","shell":"bash"},{"name":"CERT_NAME","id":"CERT_NAME","run":"TLD=${{ inputs.TLD }}\nCERT_NAME=wildcard-${TLD//./-}\necho \"CERT_NAME=$CERT_NAME\"\necho \"CERT_NAME=$CERT_NAME\" \u003e\u003e $GITHUB_ENV\necho \"cert_name=$CERT_NAME\" \u003e\u003e $GITHUB_OUTPUT\n","shell":"bash"}]},"default_branch":"main","path":null},"repo_metadata":{"id":42972932,"uuid":"433972758","full_name":"dmsi-io/gha-env-variables","owner":"dmsi-io","description":"Automates ENV standardization","archived":false,"fork":false,"pushed_at":"2022-11-29T17:31:45.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":7,"default_branch":"main","last_synced_at":"2026-09-17T03:58:26.097Z","etag":null,"topics":["action","github-actions"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/dmsi-io.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":".github/CODEOWNERS","security":null,"support":null}},"created_at":"2021-12-01T20:20:31.000Z","updated_at":"2026-03-20T15:21:40.000Z","dependencies_parsed_at":"2023-01-21T12:09:11.726Z","dependency_job_id":null,"html_url":"https://github.com/dmsi-io/gha-env-variables","commit_stats":{"total_commits":20,"total_committers":4,"mean_commits":5.0,"dds":0.7,"last_synced_commit":"3b2f38bf9a650ba7fd4bb2ebfeecf8869886dc33"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/dmsi-io/gha-env-variables","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmsi-io%2Fgha-env-variables","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmsi-io%2Fgha-env-variables/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmsi-io%2Fgha-env-variables/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmsi-io%2Fgha-env-variables/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dmsi-io","download_url":"https://codeload.github.com/dmsi-io/gha-env-variables/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmsi-io%2Fgha-env-variables/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":341189360,"owners_count":37549931,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-08-22T15:14:58.755Z","status":"online","status_checked_at":"2026-09-20T02:00:06.856Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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"},"owner_record":{"login":"dmsi-io","name":"DMSi","uuid":"94390030","kind":"organization","description":"","email":null,"website":"https://dmsi.com","location":"United States of America","twitter":null,"company":null,"icon_url":"https://avatars.githubusercontent.com/u/94390030?v=4","repositories_count":18,"last_synced_at":"2026-09-16T21:55:55.303Z","metadata":{"has_sponsors_listing":false,"funding":null},"html_url":"https://github.com/dmsi-io","funding_links":[],"total_stars":9,"followers":34,"following":0,"created_at":"2022-11-18T20:55:45.485Z","updated_at":"2026-09-16T21:55:55.316Z","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dmsi-io","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dmsi-io/repositories"},"tags":[{"name":"v1.3.2","sha":"21f3852bfb7cc8346e8429124cd7509c0822d482","kind":"commit","published_at":"2022-10-25T16:28:21.000Z","download_url":"https://codeload.github.com/dmsi-io/gha-env-variables/tar.gz/v1.3.2","html_url":"https://github.com/dmsi-io/gha-env-variables/releases/tag/v1.3.2","dependencies_parsed_at":"2023-06-01T13:55:21.249Z","dependency_job_id":null,"purl":"pkg:github/dmsi-io/gha-env-variables@v1.3.2","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmsi-io%2Fgha-env-variables/tags/v1.3.2","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmsi-io%2Fgha-env-variables/tags/v1.3.2/manifests"},{"name":"v1","sha":"21f3852bfb7cc8346e8429124cd7509c0822d482","kind":"commit","published_at":"2022-10-25T16:28:21.000Z","download_url":"https://codeload.github.com/dmsi-io/gha-env-variables/tar.gz/v1","html_url":"https://github.com/dmsi-io/gha-env-variables/releases/tag/v1","dependencies_parsed_at":"2026-08-24T08:29:52.664Z","dependency_job_id":null,"purl":"pkg:github/dmsi-io/gha-env-variables@v1","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmsi-io%2Fgha-env-variables/tags/v1","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmsi-io%2Fgha-env-variables/tags/v1/manifests"},{"name":"v1.3.1","sha":"b177d5247423979895e47c25f1baf8d0b3ebad75","kind":"commit","published_at":"2022-10-19T18:05:49.000Z","download_url":"https://codeload.github.com/dmsi-io/gha-env-variables/tar.gz/v1.3.1","html_url":"https://github.com/dmsi-io/gha-env-variables/releases/tag/v1.3.1","dependencies_parsed_at":"2023-06-01T13:55:21.532Z","dependency_job_id":null,"purl":"pkg:github/dmsi-io/gha-env-variables@v1.3.1","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmsi-io%2Fgha-env-variables/tags/v1.3.1","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmsi-io%2Fgha-env-variables/tags/v1.3.1/manifests"},{"name":"v1.3.0","sha":"5d69515bf4013d48b85fd0779d0cc4cdc2d3d79b","kind":"commit","published_at":"2022-03-25T14:49:09.000Z","download_url":"https://codeload.github.com/dmsi-io/gha-env-variables/tar.gz/v1.3.0","html_url":"https://github.com/dmsi-io/gha-env-variables/releases/tag/v1.3.0","dependencies_parsed_at":"2023-06-01T13:55:21.898Z","dependency_job_id":null,"purl":"pkg:github/dmsi-io/gha-env-variables@v1.3.0","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmsi-io%2Fgha-env-variables/tags/v1.3.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmsi-io%2Fgha-env-variables/tags/v1.3.0/manifests"},{"name":"v1.2.0","sha":"b3bf397809747dfb5a2a919cda3a202fc5844e73","kind":"tag","published_at":"2022-02-16T14:29:41.000Z","download_url":"https://codeload.github.com/dmsi-io/gha-env-variables/tar.gz/v1.2.0","html_url":"https://github.com/dmsi-io/gha-env-variables/releases/tag/v1.2.0","dependencies_parsed_at":"2023-06-01T13:55:22.239Z","dependency_job_id":null,"purl":"pkg:github/dmsi-io/gha-env-variables@v1.2.0","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmsi-io%2Fgha-env-variables/tags/v1.2.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmsi-io%2Fgha-env-variables/tags/v1.2.0/manifests"},{"name":"v1.2","sha":"b3bf397809747dfb5a2a919cda3a202fc5844e73","kind":"tag","published_at":"2022-02-16T14:29:41.000Z","download_url":"https://codeload.github.com/dmsi-io/gha-env-variables/tar.gz/v1.2","html_url":"https://github.com/dmsi-io/gha-env-variables/releases/tag/v1.2","dependencies_parsed_at":"2023-05-31T09:29:23.920Z","dependency_job_id":null,"purl":"pkg:github/dmsi-io/gha-env-variables@v1.2","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmsi-io%2Fgha-env-variables/tags/v1.2","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmsi-io%2Fgha-env-variables/tags/v1.2/manifests"},{"name":"v1.1.0","sha":"3095821bd54b4be504bf8faf508b65e2ae4059a7","kind":"commit","published_at":"2021-12-30T18:18:40.000Z","download_url":"https://codeload.github.com/dmsi-io/gha-env-variables/tar.gz/v1.1.0","html_url":"https://github.com/dmsi-io/gha-env-variables/releases/tag/v1.1.0","dependencies_parsed_at":"2023-06-01T13:55:22.519Z","dependency_job_id":null,"purl":"pkg:github/dmsi-io/gha-env-variables@v1.1.0","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmsi-io%2Fgha-env-variables/tags/v1.1.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmsi-io%2Fgha-env-variables/tags/v1.1.0/manifests"},{"name":"v1.0.0","sha":"9db679964fe9ae6af030974f895b4eb7c487a44e","kind":"commit","published_at":"2021-12-06T17:06:32.000Z","download_url":"https://codeload.github.com/dmsi-io/gha-env-variables/tar.gz/v1.0.0","html_url":"https://github.com/dmsi-io/gha-env-variables/releases/tag/v1.0.0","dependencies_parsed_at":"2023-06-01T13:55:22.705Z","dependency_job_id":null,"purl":"pkg:github/dmsi-io/gha-env-variables@v1.0.0","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmsi-io%2Fgha-env-variables/tags/v1.0.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmsi-io%2Fgha-env-variables/tags/v1.0.0/manifests"}]},"repo_metadata_updated_at":"2026-09-21T00:54:03.137Z","dependent_packages_count":0,"downloads":null,"downloads_period":null,"dependent_repos_count":4,"rankings":{"downloads":null,"dependent_repos_count":16.460148946284264,"dependent_packages_count":0.0,"stargazers_count":34.73617493265726,"forks_count":35.20202820472191,"docker_downloads_count":null,"average":21.59958802091586},"purl":"pkg:githubactions/dmsi-io/gha-env-variables","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/actions/dmsi-io/gha-env-variables","docker_dependents_count":null,"docker_downloads_count":null,"usage_url":"https://repos.ecosyste.ms/usage/actions/dmsi-io/gha-env-variables","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/actions/dmsi-io/gha-env-variables/dependencies","status":"removed","funding_links":[],"critical":null,"issue_metadata":{"last_synced_at":"2025-04-03T19:43:29.000Z","issues_count":1,"pull_requests_count":7,"avg_time_to_close_issue":4495946.0,"avg_time_to_close_pull_request":29694.428571428572,"issues_closed_count":1,"pull_requests_closed_count":7,"pull_request_authors_count":3,"issue_authors_count":1,"avg_comments_per_issue":2.0,"avg_comments_per_pull_request":0.14285714285714285,"merged_pull_requests_count":7,"bot_issues_count":0,"bot_pull_requests_count":0,"past_year_issues_count":0,"past_year_pull_requests_count":0,"past_year_avg_time_to_close_issue":null,"past_year_avg_time_to_close_pull_request":null,"past_year_issues_closed_count":0,"past_year_pull_requests_closed_count":0,"past_year_pull_request_authors_count":0,"past_year_issue_authors_count":0,"past_year_avg_comments_per_issue":null,"past_year_avg_comments_per_pull_request":null,"past_year_bot_issues_count":0,"past_year_bot_pull_requests_count":0,"past_year_merged_pull_requests_count":0,"issues_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmsi-io%2Fgha-env-variables/issues","maintainers":[{"login":"hbiede","count":1,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/hbiede"}],"active_maintainers":[]},"versions_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/dmsi-io%2Fgha-env-variables/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/dmsi-io%2Fgha-env-variables/version_numbers","latest_version_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/dmsi-io%2Fgha-env-variables/latest_version","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/dmsi-io%2Fgha-env-variables/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/dmsi-io%2Fgha-env-variables/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/dmsi-io%2Fgha-env-variables/codemeta","maintainers":[]}