From 7f98196830da86f020ad9f4b17c9f7735717957a Mon Sep 17 00:00:00 2001 From: Erik Osterman Date: Mon, 15 Sep 2025 15:02:15 -0500 Subject: [PATCH] chore: Replace Makefile with atmos.yaml --- .github/workflows/test-dev-environment.yml | 12 ++++++-- .../workflows/test-staging-environment.yml | 12 ++++++-- Makefile | 10 ------- atmos.yaml | 2 ++ docs/github-action.md | 28 ------------------- 5 files changed, 22 insertions(+), 42 deletions(-) delete mode 100644 Makefile create mode 100644 atmos.yaml delete mode 100644 docs/github-action.md diff --git a/.github/workflows/test-dev-environment.yml b/.github/workflows/test-dev-environment.yml index 2b0c53e..5f47cff 100644 --- a/.github/workflows/test-dev-environment.yml +++ b/.github/workflows/test-dev-environment.yml @@ -5,8 +5,16 @@ on: # # Added pull_request to register workflow from the PR. # # Read more https://stackoverflow.com/questions/63362126/github-actions-how-to-run-a-workflow-created-on-a-non-master-branch-from-the-wo # pull_request: {} - workflow_dispatch: {} - + workflow_dispatch: + inputs: + ref: + description: "The fully-formed ref of the branch or tag that triggered the workflow run" + required: false + type: "string" + sha: + description: "The sha of the commit that triggered the workflow run" + required: false + type: "string" jobs: setup: runs-on: ubuntu-latest diff --git a/.github/workflows/test-staging-environment.yml b/.github/workflows/test-staging-environment.yml index 107bdf3..d322cbb 100644 --- a/.github/workflows/test-staging-environment.yml +++ b/.github/workflows/test-staging-environment.yml @@ -5,8 +5,16 @@ on: # # Added pull_request to register workflow from the PR. # # Read more https://stackoverflow.com/questions/63362126/github-actions-how-to-run-a-workflow-created-on-a-non-master-branch-from-the-wo # pull_request: {} - workflow_dispatch: {} - + workflow_dispatch: + inputs: + ref: + description: "The fully-formed ref of the branch or tag that triggered the workflow run" + required: false + type: "string" + sha: + description: "The sha of the commit that triggered the workflow run" + required: false + type: "string" jobs: setup: runs-on: ubuntu-latest diff --git a/Makefile b/Makefile deleted file mode 100644 index dc7415e..0000000 --- a/Makefile +++ /dev/null @@ -1,10 +0,0 @@ -SHELL := /bin/bash - -# List of targets the `readme` target should call before generating the readme -export README_DEPS ?= docs/github-action.md - --include $(shell curl -sSL -o .build-harness "https://cloudposse.tools/build-harness"; echo .build-harness) - -## Lint terraform code -lint: - $(SELF) terraform/install terraform/get-modules terraform/get-plugins terraform/lint terraform/validate \ No newline at end of file diff --git a/atmos.yaml b/atmos.yaml new file mode 100644 index 0000000..dfa6aca --- /dev/null +++ b/atmos.yaml @@ -0,0 +1,2 @@ +import: + - https://raw.githubusercontent.com/cloudposse/.github/refs/heads/main/.github/atmos/github-action.yaml diff --git a/docs/github-action.md b/docs/github-action.md deleted file mode 100644 index c3e6d67..0000000 --- a/docs/github-action.md +++ /dev/null @@ -1,28 +0,0 @@ - - -## Inputs - -| Name | Description | Default | Required | -|------|-------------|---------|----------| -| application | Application name | N/A | false | -| attributes | Comma separated attributes | N/A | false | -| environment | Environment name | N/A | true | -| implementation\_github\_pat | GitHub PAT allow fetch environment action implementation | N/A | true | -| implementation\_path | Repository path with Environment action implementation | | true | -| implementation\_ref | Ref of environment action implementation | main | true | -| implementation\_repository | Repository with Environment action implementation | N/A | true | -| namespace | Namespace name | N/A | true | -| repository | Repository name | N/A | false | - - -## Outputs - -| Name | Description | -|------|-------------| -| cluster | Environments that need to be destroyed | -| name | Environment name | -| namespace | Namespace | -| region | JSON formatted {label}: {environment} map | -| role | Environments that need to be deployed | -| ssm-path | Path to ssm secrets | -