@@ -90,6 +90,69 @@ The following inputs can be used as `step.with` keys:
9090| `timeout` | `5m` | The timeout for the Helm command |
9191| `working-directory` | `.` | The working directory where the action commands will operate |
9292
93+ # ## Setup S3 Preview
94+
95+ Creates an S3 preview prefix by copying from the main prefix.
96+
97+ # ### Example
98+
99+ ` ` ` yaml
100+ - uses: aboutbits/github-actions-kubernetes/setup-s3-preview@v3
101+ with:
102+ configmap-name: my-app-environments
103+ namespace: my-namespace
104+ preview-number: ${{ github.event.number }}
105+ ` ` `
106+
107+ # ### Inputs
108+
109+ The following inputs can be used as `step.with` keys :
110+
111+ | Name | Required/Default | Description |
112+ |-----------------------------|-----------------------------|-----------------------------------------------------|
113+ | `configmap-name` | `app-spring-deployment-env` | Name of the ConfigMap |
114+ | `namespace` | required | Kubernetes namespace |
115+ | `preview-number` | required | Preview number (PR number) |
116+ | `secret-name` | `app-secrets` | Name of the secret containing AWS credentials |
117+ | `s3-bucket-key` | `S3_BUCKET` | Key for S3_BUCKET in ConfigMap |
118+ | `s3-endpoint-key` | `S3_ENDPOINT` | Key for S3_ENDPOINT in ConfigMap |
119+ | `aws-region-key` | `AWS_REGION` | Key for AWS_REGION in ConfigMap |
120+ | `aws-access-key-id-key` | `AWS_ACCESS_KEY_ID` | Key for AWS_ACCESS_KEY_ID in Secret |
121+ | `aws-secret-access-key-key` | `AWS_SECRET_ACCESS_KEY` | Key for AWS_SECRET_ACCESS_KEY in Secret |
122+ | `aws-session-token-key` | `AWS_SESSION_TOKEN` | Key for AWS_SESSION_TOKEN in Secret |
123+ | `base-prefix` | `main` | Base prefix to copy from |
124+
125+ # ## Teardown S3 Preview
126+
127+ Deletes the S3 preview prefix.
128+
129+ # ### Example
130+
131+ ` ` ` yaml
132+ - uses: aboutbits/github-actions-kubernetes/teardown-s3-preview@v3
133+ with:
134+ configmap-name: my-app-environments
135+ namespace: my-namespace
136+ preview-number: ${{ github.event.number }}
137+ ` ` `
138+
139+ # ### Inputs
140+
141+ The following inputs can be used as `step.with` keys :
142+
143+ | Name | Required/Default | Description |
144+ |-----------------------------|-----------------------------|-----------------------------------------------------|
145+ | `configmap-name` | `app-spring-deployment-env` | Name of the ConfigMap |
146+ | `namespace` | required | Kubernetes namespace |
147+ | `preview-number` | required | Preview number (PR number) |
148+ | `secret-name` | `app-secrets` | Name of the secret containing AWS credentials |
149+ | `s3-bucket-key` | `S3_BUCKET` | Key for S3_BUCKET in ConfigMap |
150+ | `s3-endpoint-key` | `S3_ENDPOINT` | Key for S3_ENDPOINT in ConfigMap |
151+ | `aws-region-key` | `AWS_REGION` | Key for AWS_REGION in ConfigMap |
152+ | `aws-access-key-id-key` | `AWS_ACCESS_KEY_ID` | Key for AWS_ACCESS_KEY_ID in Secret |
153+ | `aws-secret-access-key-key` | `AWS_SECRET_ACCESS_KEY` | Key for AWS_SECRET_ACCESS_KEY in Secret |
154+ | `aws-session-token-key` | `AWS_SESSION_TOKEN` | Key for AWS_SESSION_TOKEN in Secret |
155+
93156# ## Setup PostgreSQL Preview Schema
94157
95158Sets up a PostgreSQL preview schema by cloning a base schema.
0 commit comments