fix: Path for secrets injection
Some checks failed
Deploy to Staging / Build Images (push) Successful in 20s
Deploy to Staging / Deploy to Staging (push) Successful in 26s
Deploy to Staging / Verify Staging (push) Failing after 56s
Deploy to Staging / Notify Staging Ready (push) Has been skipped
Deploy to Staging / Notify Staging Failure (push) Successful in 5s

This commit is contained in:
Eric Gullickson
2025-12-30 08:39:02 -06:00
parent d236b902d9
commit c2514984bb
3 changed files with 21 additions and 1 deletions

View File

@@ -100,7 +100,7 @@ jobs:
run: | run: |
cd "$DEPLOY_PATH" cd "$DEPLOY_PATH"
chmod +x scripts/inject-secrets.sh chmod +x scripts/inject-secrets.sh
SECRETS_DIR="$DEPLOY_PATH/secrets/staging" ./scripts/inject-secrets.sh SECRETS_DIR="$DEPLOY_PATH/secrets/app" ./scripts/inject-secrets.sh
env: env:
POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }} POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }}
AUTH0_CLIENT_SECRET: ${{ secrets.AUTH0_CLIENT_SECRET }} AUTH0_CLIENT_SECRET: ${{ secrets.AUTH0_CLIENT_SECRET }}

View File

@@ -133,6 +133,16 @@
groups: docker groups: docker
append: true append: true
- name: Configure passwordless sudo for act_runner
copy:
dest: /etc/sudoers.d/act_runner
content: |
# Allow act_runner to run commands without password for CI/CD operations
# This is required because Gitea Actions runners don't have a TTY
act_runner ALL=(ALL) NOPASSWD: ALL
mode: '0440'
validate: 'visudo -cf %s'
- name: Create act_runner config directory - name: Create act_runner config directory
file: file:
path: /etc/act_runner path: /etc/act_runner

View File

@@ -163,6 +163,16 @@
groups: docker groups: docker
append: true append: true
- name: Configure passwordless sudo for act_runner
copy:
dest: /etc/sudoers.d/act_runner
content: |
# Allow act_runner to run commands without password for CI/CD operations
# This is required because Gitea Actions runners don't have a TTY
act_runner ALL=(ALL) NOPASSWD: ALL
mode: '0440'
validate: 'visudo -cf %s'
- name: Create act_runner config directory - name: Create act_runner config directory
file: file:
path: /etc/act_runner path: /etc/act_runner