Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions .github/workflows/test-setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,21 +34,14 @@ jobs:
- name: Verify environment variables
run: |
echo "AWS_ENDPOINT_URL: $AWS_ENDPOINT_URL"
echo "KECS_ENDPOINT: $KECS_ENDPOINT"
echo "KECS_ADMIN_ENDPOINT: $KECS_ADMIN_ENDPOINT"
echo "KUBECONFIG: $KUBECONFIG"
echo "KECS_INSTANCE: $KECS_INSTANCE"

# Check environment variables are set
test -n "$AWS_ENDPOINT_URL"
test -n "$KECS_ENDPOINT"
test -n "$KECS_ADMIN_ENDPOINT"
test -n "$KUBECONFIG"
test -n "$KECS_INSTANCE"

# Verify they match outputs
test "$KECS_ENDPOINT" = "${{ steps.kecs.outputs.endpoint }}"
test "$KECS_INSTANCE" = "${{ steps.kecs.outputs.instance-name }}"
test "$AWS_ENDPOINT_URL" = "${{ steps.kecs.outputs.endpoint }}"

- name: Test ECS API
run: |
Expand Down
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,10 @@ jobs:

The action automatically exports the following environment variables:

- `AWS_ENDPOINT_URL`: KECS API endpoint
- `KECS_ENDPOINT`: KECS API endpoint
- `KECS_ADMIN_ENDPOINT`: KECS admin endpoint
- `KUBECONFIG`: Path to kubeconfig file
- `KECS_INSTANCE`: Instance name
- `AWS_ENDPOINT_URL`: KECS API endpoint (for AWS CLI)
- `KUBECONFIG`: Path to kubeconfig file (for kubectl access)

For direct API access to KECS, use the `endpoint` output: `${{ steps.kecs.outputs.endpoint }}`

## Advanced Usage

Expand Down
3 changes: 0 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,4 @@ runs:
shell: bash
run: |
echo "AWS_ENDPOINT_URL=${{ steps.start.outputs.endpoint }}" >> $GITHUB_ENV
echo "KECS_ENDPOINT=${{ steps.start.outputs.endpoint }}" >> $GITHUB_ENV
echo "KECS_ADMIN_ENDPOINT=${{ steps.start.outputs.admin-endpoint }}" >> $GITHUB_ENV
echo "KUBECONFIG=${{ steps.start.outputs.kubeconfig }}" >> $GITHUB_ENV
echo "KECS_INSTANCE=${{ steps.start.outputs.instance-name }}" >> $GITHUB_ENV
Loading