Skip to content

Commit 564fd1b

Browse files
nsheapsclaude
andauthored
Remove sync-name-prefix from Arcane deployment workflow (#24)
Co-authored-by: Claude <noreply@anthropic.com>
1 parent cff43c4 commit 564fd1b

2 files changed

Lines changed: 11 additions & 4 deletions

File tree

.github/workflows/arcane-deploy.yaml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,14 @@ jobs:
145145
- name: Checkout
146146
uses: actions/checkout@v4
147147

148+
- name: Load deploy key from 1Password
149+
uses: 1password/load-secrets-action@v2
150+
with:
151+
export-env: true
152+
env:
153+
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
154+
IAC_ARCANE_DEPLOY_KEY: 'op://heapsinfra/iac-arcane-deploy-key/private key'
155+
148156
- name: Deploy to Arcane
149157
# TODO: Pin to commit SHA once nsheaps/github-actions has releases.
150158
# See: https://github.com/nsheaps/iac/issues/3
@@ -154,9 +162,8 @@ jobs:
154162
arcane-api-key: ${{ secrets.ARCANE_API_KEY }}
155163
environment-id: ${{ matrix['environment-id'] }}
156164
compose-files: ${{ matrix['compose-file'] }}
157-
sync-name-prefix: ${{ matrix.host }}
158-
auth-type: http
159-
git-token: ${{ secrets.GIT_TOKEN }}
165+
auth-type: ssh
166+
ssh-private-key: ${{ env.IAC_ARCANE_DEPLOY_KEY }}
160167
branch: main
161168

162169
tag:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Stacks are deployed automatically via the [arcane-deploy](https://github.com/nsh
1818
- **Sync naming**: Files like `hosts/heapsnas/nextcloud/docker-compose.yaml` become sync `heapsnas-nextcloud` in Arcane.
1919
- **Auto-sync**: Arcane polls for changes every 5 minutes in addition to push-triggered syncs.
2020

21-
Secrets (Arcane API key, git token) are stored as GitHub repository secrets, synced via the [nsheaps/.github](https://github.com/nsheaps/.github) 1Password sync workflow.
21+
Secrets (Arcane API key, deploy key) are stored as GitHub repository secrets, synced via the [nsheaps/.github](https://github.com/nsheaps/.github) 1Password sync workflow.
2222

2323
#### Adding a new stack
2424

0 commit comments

Comments
 (0)