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
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:
@@ -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 }}
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user