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
6 changes: 6 additions & 0 deletions .github/workflows/opentofu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ on:
required: false
SSH_KNOWN_HOSTS:
required: false
NAMECHEAP_API_KEY:
required: false

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
Expand Down Expand Up @@ -198,6 +200,8 @@ jobs:
known_hosts: ${{ secrets.SSH_KNOWN_HOSTS }}
- name: OpenTofu Plan
id: plan
env:
NAMECHEAP_API_KEY: ${{ secrets.NAMECHEAP_API_KEY }}
run: |
set -o pipefail
export SHELLOPTS
Expand Down Expand Up @@ -283,4 +287,6 @@ jobs:
key: ${{ secrets.SSH_PRIVATE_KEY }}
known_hosts: ${{ secrets.SSH_KNOWN_HOSTS }}
- name: OpenTofu Apply
env:
NAMECHEAP_API_KEY: ${{ secrets.NAMECHEAP_API_KEY }}
run: make apply
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,21 @@ jobs:
uses: makeitworkcloud/shared-workflows/.github/workflows/opentofu.yml@main
```

### Namecheap

Only repositories that manage Namecheap resources should map their repository
Actions secret into the reusable workflow secret:

```yaml
jobs:
opentofu:
uses: makeitworkcloud/shared-workflows/.github/workflows/opentofu.yml@main
secrets:
NAMECHEAP_API_KEY: ${{ secrets.NAMECHEAP_API_KEY }}
```

Do not add this mapping for consumers that do not use Namecheap.

## Available Workflows

| Workflow | Description |
Expand Down